Permalink
Browse files

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

  • Loading branch information...
Luke Redpath
Luke Redpath committed Apr 9, 2008
1 parent 91fc89d commit 3a1516bac078478b9e4d161ea382dcc44859b8ad
Showing with 13 additions and 0 deletions.
  1. +13 −0 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

0 comments on commit 3a1516b

Please sign in to comment.