Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

This saves some time creating a Net HTTP connection to the co-op website

  • Loading branch information...
commit 3a1516bac078478b9e4d161ea382dcc44859b8ad 1 parent 91fc89d
Luke Redpath authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/coopexport/interface.rb
View
13 lib/coopexport/interface.rb
@@ -0,0 +1,13 @@
+require 'net/https'
+
+module CoopExport
+ module Interface
+ COOP_HOSTNAME = 'welcome26.co-operativebank.co.uk'
+
+ def self.default_connection
+ connection = Net::HTTP.new(COOP_HOSTNAME, 443)
+ connection.use_ssl = true
+ connection
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.