class Accuweather::Conditions::ForecastWeather
Attributes
high_temperature[R]
ice_amount[R]
ice_probability[R]
low_temperature[R]
max_uv[R]
precipitation_amount[R]
precipitation_probability[R]
rain_amount[R]
rain_probability[R]
real_feel_high[R]
real_feel_low[R]
snow_amount[R]
snow_probability[R]
thunderstorm_probability[R]
weather_icon[R]
weather_text[R]
weather_text_long[R]
wind_direction[R]
wind_gust[R]
wind_speed[R]
Public Class Methods
new(weather_text:, weather_text_long:, weather_icon:, high_temperature:, low_temperature:, real_feel_high:, real_feel_low:, wind_speed:, wind_direction:, wind_gust:, max_uv:, rain_amount:, snow_amount:, ice_amount:, precipitation_amount:, thunderstorm_probability:, rain_probability:, snow_probability:, ice_probability:, precipitation_probability:)
click to toggle source
# File lib/accuweather/conditions/forecast_weather.rb, line 6 def initialize(weather_text:, weather_text_long:, weather_icon:, high_temperature:, low_temperature:, real_feel_high:, real_feel_low:, wind_speed:, wind_direction:, wind_gust:, max_uv:, rain_amount:, snow_amount:, ice_amount:, precipitation_amount:, thunderstorm_probability:, rain_probability:, snow_probability:, ice_probability:, precipitation_probability:) @weather_text = weather_text @weather_text_long = weather_text_long @weather_icon = weather_icon @high_temperature = high_temperature @low_temperature = low_temperature @real_feel_high = real_feel_high @real_feel_low = real_feel_low @wind_speed = wind_speed @wind_direction = wind_direction @wind_gust = wind_gust @max_uv = max_uv @rain_amount = rain_amount @snow_amount = snow_amount @ice_amount = ice_amount @precipitation_amount = precipitation_amount @thunderstorm_probability = thunderstorm_probability @rain_probability = rain_probability @snow_probability = snow_probability @ice_probability = ice_probability @precipitation_probability = precipitation_probability end
Public Instance Methods
==(other)
click to toggle source
# File lib/accuweather/conditions/forecast_weather.rb, line 29 def ==(other) weather_text == other.weather_text && weather_text_long == other.weather_text_long && weather_icon == other.weather_icon && high_temperature == other.high_temperature && low_temperature == other.low_temperature && real_feel_high == other.real_feel_high && real_feel_low == other.real_feel_low && wind_speed == other.wind_speed && wind_direction == other.wind_direction && wind_gust == other.wind_gust && max_uv == other.max_uv && rain_amount == other.rain_amount && snow_amount == other.snow_amount && ice_amount == other.ice_amount && precipitation_amount == other.precipitation_amount && thunderstorm_probability == other.thunderstorm_probability && rain_probability == other.rain_probability && snow_probability == other.snow_probability && ice_probability == other.ice_probability && precipitation_probability == other.precipitation_probability rescue NoMethodError false end
to_s()
click to toggle source
# File lib/accuweather/conditions/forecast_weather.rb, line 54 def to_s "weather_text: #{weather_text}, weather_text_long: #{weather_text_long}, weather_icon: #{weather_icon}, high_temperature: #{high_temperature}, low_temperature: #{low_temperature}, real_feel_high: #{real_feel_high}, real_feel_low: #{real_feel_low}, wind_speed: #{wind_speed}, wind_direction: #{wind_direction}, wind_gust: #{wind_gust}, max_uv: #{max_uv}, rain_amount: #{rain_amount}, snow_amount: #{snow_amount}, ice_amount: #{ice_amount}, precipitation_amount: #{precipitation_amount}, thunderstorm_probability: #{thunderstorm_probability}, rain_probability: #{rain_probability}, snow_probability: #{snow_probability}, ice_probability: #{ice_probability}, precipitation_probability: #{precipitation_probability}" end