Class: OpenTopo::Net::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/open_topo/net/connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_key = nil) ⇒ Connection

Returns a new instance of Connection.



10
11
12
# File 'lib/open_topo/net/connection.rb', line 10

def initialize(api_key = nil)
  @api_key = api_key
end

Instance Method Details

#buildObject



14
15
16
# File 'lib/open_topo/net/connection.rb', line 14

def build
  create_connection
end