Class: OpenWeatherMap::Base
- Inherits:
-
Object
- Object
- OpenWeatherMap::Base
- Defined in:
- lib/open_weather_map/base.rb
Instance Method Summary collapse
- #cond ⇒ Object
- #temp_max ⇒ Object
- #temp_max_celsius ⇒ Object
- #temp_min ⇒ Object
- #temp_min_celsius ⇒ Object
Instance Method Details
#cond ⇒ Object
6 7 8 |
# File 'lib/open_weather_map/base.rb', line 6 def cond @response['weather'][0]['main'] end |
#temp_max ⇒ Object
14 15 16 |
# File 'lib/open_weather_map/base.rb', line 14 def temp_max @response['main']['temp_max'] end |
#temp_max_celsius ⇒ Object
22 23 24 |
# File 'lib/open_weather_map/base.rb', line 22 def temp_max_celsius to_celsius @response['main']['temp_max'] end |
#temp_min ⇒ Object
10 11 12 |
# File 'lib/open_weather_map/base.rb', line 10 def temp_min @response['main']['temp_min'] end |
#temp_min_celsius ⇒ Object
18 19 20 |
# File 'lib/open_weather_map/base.rb', line 18 def temp_min_celsius to_celsius @response['main']['temp_min'] end |