Class: NOAA::ForecastDay
- Inherits:
-
Object
- Object
- NOAA::ForecastDay
- Defined in:
- lib/noaa/forecast_day.rb
Overview
A ForecastDay contains forecast data for a single day. Each day should start at 6am and end at 6am the following day (assuming that is invariant on the part of the NOAA’s data feed). ForecastDay objects are accessed using NOAA::Forecast#[]
Instance Attribute Summary collapse
-
#daytime_precipitation_probability ⇒ Object
Percentage probability of precipitation during the day, between 6am and 6pm, as an integer (0-100).
-
#ends_at ⇒ Object
Time when this forecast’s valid time span ends.
-
#evening_precipitation_probability ⇒ Object
Percentage probability of precipitation during the evening/night, between 6pm and 6am, as an integer (0-100).
-
#high ⇒ Object
High temperature for the day in Fahrenheit.
-
#image_url ⇒ Object
URL string for NOAA weather image.
-
#low ⇒ Object
Low temperature for the day in Fahrenheit.
-
#starts_at ⇒ Object
Time when this forecast’s valid time span begins.
-
#weather_summary ⇒ Object
(also: #weather_description)
String summary of weather (e.g., ‘Fair’).
-
#weather_type_code ⇒ Object
Symbol representing NOAA weather type.
Instance Attribute Details
#daytime_precipitation_probability ⇒ Object
Percentage probability of precipitation during the day, between 6am and 6pm, as an integer (0-100)
30 31 32 |
# File 'lib/noaa/forecast_day.rb', line 30 def daytime_precipitation_probability @daytime_precipitation_probability end |
#ends_at ⇒ Object
Time when this forecast’s valid time span ends
11 12 13 |
# File 'lib/noaa/forecast_day.rb', line 11 def ends_at @ends_at end |
#evening_precipitation_probability ⇒ Object
Percentage probability of precipitation during the evening/night, between 6pm and 6am, as an integer (0-100)
33 34 35 |
# File 'lib/noaa/forecast_day.rb', line 33 def evening_precipitation_probability @evening_precipitation_probability end |
#high ⇒ Object
High temperature for the day in Fahrenheit
14 15 16 |
# File 'lib/noaa/forecast_day.rb', line 14 def high @high end |
#image_url ⇒ Object
URL string for NOAA weather image
27 28 29 |
# File 'lib/noaa/forecast_day.rb', line 27 def image_url @image_url end |
#low ⇒ Object
Low temperature for the day in Fahrenheit
17 18 19 |
# File 'lib/noaa/forecast_day.rb', line 17 def low @low end |
#starts_at ⇒ Object
Time when this forecast’s valid time span begins
8 9 10 |
# File 'lib/noaa/forecast_day.rb', line 8 def starts_at @starts_at end |
#weather_summary ⇒ Object Also known as: weather_description
String summary of weather (e.g., ‘Fair’)
20 21 22 |
# File 'lib/noaa/forecast_day.rb', line 20 def weather_summary @weather_summary end |
#weather_type_code ⇒ Object
Symbol representing NOAA weather type. See NOAA::CurrentConditions#weather_type_code
24 25 26 |
# File 'lib/noaa/forecast_day.rb', line 24 def weather_type_code @weather_type_code end |