Class: AralyneOwm::Current

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

Instance Method Summary collapse

Constructor Details

#initialize(city_id, api_key) ⇒ Current

Returns a new instance of Current.



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

def initialize(city_id, api_key)
  @city_id = city_id
  @api_key = api_key
  @api = AralyneOwm::Config.new(@city_id, endpoint, api_key).call
end

Instance Method Details

#callObject



10
11
12
# File 'lib/aralyne_owm/current.rb', line 10

def call
  @api
end