Class: AralyneOwm::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/aralyne_owm/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(city_id, endpoint, api_key) ⇒ Config

Returns a new instance of Config.



4
5
6
7
8
9
# File 'lib/aralyne_owm/config.rb', line 4

def initialize(city_id, endpoint, api_key)
  @api_key = api_key
  @city_id = city_id
  @endpoint = endpoint
  @api_response = HTTParty.get(uri)
end

Instance Method Details

#callObject



11
12
13
# File 'lib/aralyne_owm/config.rb', line 11

def call
  @api_response
end