Class: Geoiq::Client
Instance Method Summary collapse
-
#initialize(url, username = nil, password = nil) ⇒ Client
constructor
A new instance of Client.
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 |