Class: OpenWeatherMap::City
Instance Method Summary collapse
-
#initialize(country, city) ⇒ City
constructor
A new instance of City.
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 |