Class: Weather::Forecast::Night

Inherits:
FutureConditions show all
Defined in:
lib/weather/forecast.rb

Overview

The nighttime part of a forecast for a given day.

Instance Attribute Summary

Attributes inherited from FutureConditions

#xml

Instance Method Summary collapse

Methods inherited from FutureConditions

#date, #high, #icon, #latest_update, #low, #method_missing, #outlook, #outlook_brief, #pop, #sunrise, #sunset, #wind

Methods inherited from Conditions

#latest_update, #method_missing, #wind

Constructor Details

#initialize(element) ⇒ Night

Returns a new instance of Night.



365
366
367
# File 'lib/weather/forecast.rb', line 365

def initialize(element)
  super(element)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Weather::Forecast::FutureConditions

Instance Method Details

#tempObject Also known as: tmp, temperature



369
370
371
# File 'lib/weather/forecast.rb', line 369

def temp
  low
end