Class: NOAA::ForecastDay

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#daytime_precipitation_probabilityObject

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_atObject

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_probabilityObject

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

#highObject

High temperature for the day in Fahrenheit



14
15
16
# File 'lib/noaa/forecast_day.rb', line 14

def high
  @high
end

#image_urlObject

URL string for NOAA weather image



27
28
29
# File 'lib/noaa/forecast_day.rb', line 27

def image_url
  @image_url
end

#lowObject

Low temperature for the day in Fahrenheit



17
18
19
# File 'lib/noaa/forecast_day.rb', line 17

def low
  @low
end

#starts_atObject

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_summaryObject 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_codeObject

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