Class: OpenWeatherMap::Base

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

Direct Known Subclasses

City, Geocode

Instance Method Summary collapse

Instance Method Details

#condObject



6
7
8
# File 'lib/open_weather_map/base.rb', line 6

def cond
  @response['weather'][0]['main']
end

#temp_maxObject



14
15
16
# File 'lib/open_weather_map/base.rb', line 14

def temp_max
  @response['main']['temp_max']
end

#temp_max_celsiusObject



22
23
24
# File 'lib/open_weather_map/base.rb', line 22

def temp_max_celsius
  to_celsius @response['main']['temp_max']
end

#temp_minObject



10
11
12
# File 'lib/open_weather_map/base.rb', line 10

def temp_min
  @response['main']['temp_min']
end

#temp_min_celsiusObject



18
19
20
# File 'lib/open_weather_map/base.rb', line 18

def temp_min_celsius
  to_celsius @response['main']['temp_min']
end