class OpenWeatherApi::Weather
Attributes
base[RW]
clouds[RW]
cod[RW]
coord[RW]
dt[RW]
id[RW]
main[RW]
message[RW]
name[RW]
params[RW]
rain[RW]
sys[RW]
timezone[RW]
visibility[RW]
weather[RW]
wind[RW]
Public Instance Methods
attributes()
click to toggle source
# File lib/open_weather_api/weather.rb, line 16 def attributes instance_values end
attributes=(hash)
click to toggle source
# File lib/open_weather_api/weather.rb, line 10 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end
error()
click to toggle source
# File lib/open_weather_api/weather.rb, line 24 def error message end
error?()
click to toggle source
# File lib/open_weather_api/weather.rb, line 20 def error? true unless cod.eq 200 end
temperature()
click to toggle source
# File lib/open_weather_api/weather.rb, line 28 def temperature main['temp'].to_f end