Class: Tenkit::DayWeatherConditions
- Inherits:
-
Object
- Object
- Tenkit::DayWeatherConditions
- Defined in:
- lib/tenkit/day_weather_conditions.rb
Instance Attribute Summary collapse
-
#condition_code ⇒ Object
readonly
Returns the value of attribute condition_code.
-
#daytime_forecast ⇒ Object
readonly
Returns the value of attribute daytime_forecast.
-
#forecast_end ⇒ Object
readonly
Returns the value of attribute forecast_end.
-
#forecast_start ⇒ Object
readonly
Returns the value of attribute forecast_start.
-
#max_uv_index ⇒ Object
readonly
Returns the value of attribute max_uv_index.
-
#moon_phase ⇒ Object
readonly
Returns the value of attribute moon_phase.
-
#moonrise ⇒ Object
readonly
Returns the value of attribute moonrise.
-
#moonset ⇒ Object
readonly
Returns the value of attribute moonset.
-
#overnight_forecast ⇒ Object
readonly
Returns the value of attribute overnight_forecast.
-
#precipitation_amount ⇒ Object
readonly
Returns the value of attribute precipitation_amount.
-
#precipitation_chance ⇒ Object
readonly
Returns the value of attribute precipitation_chance.
-
#precipitation_type ⇒ Object
readonly
Returns the value of attribute precipitation_type.
-
#snowfall_amount ⇒ Object
readonly
Returns the value of attribute snowfall_amount.
-
#solar_midnight ⇒ Object
readonly
Returns the value of attribute solar_midnight.
-
#solar_noon ⇒ Object
readonly
Returns the value of attribute solar_noon.
-
#sunrise ⇒ Object
readonly
Returns the value of attribute sunrise.
-
#sunrise_astronomical ⇒ Object
readonly
Returns the value of attribute sunrise_astronomical.
-
#sunrise_civil ⇒ Object
readonly
Returns the value of attribute sunrise_civil.
-
#sunrise_nautical ⇒ Object
readonly
Returns the value of attribute sunrise_nautical.
-
#sunset ⇒ Object
readonly
Returns the value of attribute sunset.
-
#sunset_astronomical ⇒ Object
readonly
Returns the value of attribute sunset_astronomical.
-
#sunset_civil ⇒ Object
readonly
Returns the value of attribute sunset_civil.
-
#sunset_nautical ⇒ Object
readonly
Returns the value of attribute sunset_nautical.
-
#temperature_max ⇒ Object
readonly
Returns the value of attribute temperature_max.
-
#temperature_min ⇒ Object
readonly
Returns the value of attribute temperature_min.
Instance Method Summary collapse
-
#initialize(day_weather_conditions) ⇒ DayWeatherConditions
constructor
A new instance of DayWeatherConditions.
Constructor Details
#initialize(day_weather_conditions) ⇒ DayWeatherConditions
Returns a new instance of DayWeatherConditions.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/tenkit/day_weather_conditions.rb', line 29 def initialize(day_weather_conditions) @condition_code = day_weather_conditions['condition_code'] @daytime_forecast = day_weather_conditions['daytime_forecast'] @forecast_end = day_weather_conditions['forecast_end'] @forecast_start = day_weather_conditions['forecast_start'] @max_uv_index = day_weather_conditions['max_uv_index'] @moon_phase = day_weather_conditions['moon_phase'] @moonrise = day_weather_conditions['moonrise'] @moonset = day_weather_conditions['moonset'] @overnight_forecast = day_weather_conditions['overnight_forecast'] @precipitation_amount = day_weather_conditions['precipitation_amount'] @precipitation_chance = day_weather_conditions['precipitation_chance'] @precipitation_type = day_weather_conditions['precipitation_type'] @snowfall_amount = day_weather_conditions['snowfall_amount'] @solar_midnight = day_weather_conditions['solar_midnight'] @solar_noon = day_weather_conditions['solar_noon'] @sunrise = day_weather_conditions['sunrise'] @sunrise_astronomical = day_weather_conditions['sunrise_astronomical'] @sunrise_civil = day_weather_conditions['sunrise_civil'] @sunrise_nautical = day_weather_conditions['sunrise_nautical'] @sunset = day_weather_conditions['sunset'] @sunset_astronomical = day_weather_conditions['sunset_astronomical'] @sunset_civil = day_weather_conditions['sunset_civil'] @sunset_nautical = day_weather_conditions['sunset_nautical'] @temperature_max = day_weather_conditions['temperature_max'] @temperature_min = day_weather_conditions['temperature_min'] end |
Instance Attribute Details
#condition_code ⇒ Object (readonly)
Returns the value of attribute condition_code.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def condition_code @condition_code end |
#daytime_forecast ⇒ Object (readonly)
Returns the value of attribute daytime_forecast.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def daytime_forecast @daytime_forecast end |
#forecast_end ⇒ Object (readonly)
Returns the value of attribute forecast_end.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def forecast_end @forecast_end end |
#forecast_start ⇒ Object (readonly)
Returns the value of attribute forecast_start.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def forecast_start @forecast_start end |
#max_uv_index ⇒ Object (readonly)
Returns the value of attribute max_uv_index.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def max_uv_index @max_uv_index end |
#moon_phase ⇒ Object (readonly)
Returns the value of attribute moon_phase.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def moon_phase @moon_phase end |
#moonrise ⇒ Object (readonly)
Returns the value of attribute moonrise.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def moonrise @moonrise end |
#moonset ⇒ Object (readonly)
Returns the value of attribute moonset.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def moonset @moonset end |
#overnight_forecast ⇒ Object (readonly)
Returns the value of attribute overnight_forecast.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def overnight_forecast @overnight_forecast end |
#precipitation_amount ⇒ Object (readonly)
Returns the value of attribute precipitation_amount.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def precipitation_amount @precipitation_amount end |
#precipitation_chance ⇒ Object (readonly)
Returns the value of attribute precipitation_chance.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def precipitation_chance @precipitation_chance end |
#precipitation_type ⇒ Object (readonly)
Returns the value of attribute precipitation_type.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def precipitation_type @precipitation_type end |
#snowfall_amount ⇒ Object (readonly)
Returns the value of attribute snowfall_amount.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def snowfall_amount @snowfall_amount end |
#solar_midnight ⇒ Object (readonly)
Returns the value of attribute solar_midnight.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def solar_midnight @solar_midnight end |
#solar_noon ⇒ Object (readonly)
Returns the value of attribute solar_noon.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def solar_noon @solar_noon end |
#sunrise ⇒ Object (readonly)
Returns the value of attribute sunrise.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunrise @sunrise end |
#sunrise_astronomical ⇒ Object (readonly)
Returns the value of attribute sunrise_astronomical.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunrise_astronomical @sunrise_astronomical end |
#sunrise_civil ⇒ Object (readonly)
Returns the value of attribute sunrise_civil.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunrise_civil @sunrise_civil end |
#sunrise_nautical ⇒ Object (readonly)
Returns the value of attribute sunrise_nautical.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunrise_nautical @sunrise_nautical end |
#sunset ⇒ Object (readonly)
Returns the value of attribute sunset.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunset @sunset end |
#sunset_astronomical ⇒ Object (readonly)
Returns the value of attribute sunset_astronomical.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunset_astronomical @sunset_astronomical end |
#sunset_civil ⇒ Object (readonly)
Returns the value of attribute sunset_civil.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunset_civil @sunset_civil end |
#sunset_nautical ⇒ Object (readonly)
Returns the value of attribute sunset_nautical.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def sunset_nautical @sunset_nautical end |
#temperature_max ⇒ Object (readonly)
Returns the value of attribute temperature_max.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def temperature_max @temperature_max end |
#temperature_min ⇒ Object (readonly)
Returns the value of attribute temperature_min.
3 4 5 |
# File 'lib/tenkit/day_weather_conditions.rb', line 3 def temperature_min @temperature_min end |