Method: Weather#initialize

Defined in:
lib/easy_weather/weather.rb

#initialize(city) ⇒ Weather

Returns a new instance of Weather.



8
9
10
11
# File 'lib/easy_weather/weather.rb', line 8

def initialize(city)
  @data = get_general_data(city) 
  @forecast = get_forecast_data(5, city)
end