Class: Place::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/place/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key: nil, api_url: nil) ⇒ Client

Returns a new instance of Client.



6
7
8
9
# File 'lib/place/client.rb', line 6

def initialize(api_key: nil, api_url: nil)
  @api_key = api_key
  @api_url = api_url
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



4
5
6
# File 'lib/place/client.rb', line 4

def api_key
  @api_key
end

#api_urlObject

Returns the value of attribute api_url.



4
5
6
# File 'lib/place/client.rb', line 4

def api_url
  @api_url
end