Class: DarkskyWeather::Api::WeatherCollection
- Inherits:
-
Object
- Object
- DarkskyWeather::Api::WeatherCollection
- Includes:
- WeatherAnalysis
- Defined in:
- lib/darksky_weather/api/weather_collection.rb
Instance Attribute Summary collapse
-
#daily ⇒ Object
readonly
Returns the value of attribute daily.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#hourly ⇒ Object
readonly
Returns the value of attribute hourly.
-
#minutely ⇒ Object
readonly
Returns the value of attribute minutely.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(*weather_datas) ⇒ WeatherCollection
constructor
A new instance of WeatherCollection.
Methods included from WeatherAnalysis
#average_visibility, #average_wind_speed, #best_visibility, #best_visibility_datetime, #max_accumulation, #max_accumulation_datetime, #max_precipitation, #max_precipitation_datetime, #max_temperature, #max_temperature_datetime, #max_wind_gust, #max_wind_gust_datetime, #max_wind_speed, #max_wind_speed_datetime, #min_temperature, #min_temperature_datetime, #min_wind_speed, #min_wind_speed_datetime, #total_precipitation, #weather_at, #weather_between, #worst_visibility, #worst_visibility_datetime
Constructor Details
#initialize(*weather_datas) ⇒ WeatherCollection
Returns a new instance of WeatherCollection.
10 11 12 13 14 15 |
# File 'lib/darksky_weather/api/weather_collection.rb', line 10 def initialize(*weather_datas) @weather_datas = weather_datas normalize_data end |
Instance Attribute Details
#daily ⇒ Object (readonly)
Returns the value of attribute daily.
8 9 10 |
# File 'lib/darksky_weather/api/weather_collection.rb', line 8 def daily @daily end |
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
8 9 10 |
# File 'lib/darksky_weather/api/weather_collection.rb', line 8 def end_date @end_date end |
#hourly ⇒ Object (readonly)
Returns the value of attribute hourly.
8 9 10 |
# File 'lib/darksky_weather/api/weather_collection.rb', line 8 def hourly @hourly end |
#minutely ⇒ Object (readonly)
Returns the value of attribute minutely.
8 9 10 |
# File 'lib/darksky_weather/api/weather_collection.rb', line 8 def minutely @minutely end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
8 9 10 |
# File 'lib/darksky_weather/api/weather_collection.rb', line 8 def start_date @start_date end |