Class: DarkskyWeather::Api::WeatherCollection

Inherits:
Object
  • Object
show all
Includes:
WeatherAnalysis
Defined in:
lib/darksky_weather/api/weather_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timestamps
  normalize_data
end

Instance Attribute Details

#dailyObject (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_dateObject (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

#hourlyObject (readonly)

Returns the value of attribute hourly.



8
9
10
# File 'lib/darksky_weather/api/weather_collection.rb', line 8

def hourly
  @hourly
end

#minutelyObject (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_dateObject (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