Class: OpenWeatherMap::City

Inherits:
Base
  • Object
show all
Defined in:
lib/open_weather_map.rb

Instance Method Summary collapse

Methods inherited from Base

#cond, #temp_max, #temp_max_celsius, #temp_min, #temp_min_celsius

Constructor Details

#initialize(country, city) ⇒ City

Returns a new instance of City.



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

def initialize(country, city)
  params = { q: "#{country},#{city}" }
  @response = request params
end