Class: Geoiq::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/geoiq/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(url, username = nil, password = nil) ⇒ Client

Returns a new instance of Client.



7
8
9
10
11
12
# File 'lib/geoiq/client.rb', line 7

def initialize(url, username=nil, password=nil)
  @username = username
  @url = url
  self.class.base_uri(url)
  @auth = {:username => username, :password => password}
end