Class: Weather
- Inherits:
-
Object
- Object
- Weather
- Defined in:
- lib/weather.rb
Instance Method Summary collapse
-
#initialize ⇒ Weather
constructor
A new instance of Weather.
- #query(location) ⇒ Object
Constructor Details
#initialize ⇒ Weather
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 |