Class: Weather

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

Instance Method Summary collapse

Constructor Details

#initializeWeather

Returns a new instance of Weather.



5
6
7
# File 'lib/weather.rb', line 5

def initialize

end

Instance Method Details

#query(location) ⇒ Object



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

def query(location)
  "Now in #{location} the weather is: " + openweather_situation(location)['weather'][0]['description']
end