Class: EarthTools::Sun::Evening
- Inherits:
-
Object
- Object
- EarthTools::Sun::Evening
- Defined in:
- lib/earth_tools/sun/evening.rb
Instance Attribute Summary collapse
-
#sunset ⇒ Object
Returns the value of attribute sunset.
-
#twilight ⇒ Object
Returns the value of attribute twilight.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Evening
constructor
A new instance of Evening.
Constructor Details
#initialize(attrs = {}) ⇒ Evening
Returns a new instance of Evening.
6 7 8 9 10 |
# File 'lib/earth_tools/sun/evening.rb', line 6 def initialize(attrs = {}) attrs ||= {} @sunset = attrs['sunset'] @twilight = EarthTools::Sun::Twilight.new(attrs['twilight']) end |
Instance Attribute Details
#sunset ⇒ Object
Returns the value of attribute sunset.
4 5 6 |
# File 'lib/earth_tools/sun/evening.rb', line 4 def sunset @sunset end |
#twilight ⇒ Object
Returns the value of attribute twilight.
4 5 6 |
# File 'lib/earth_tools/sun/evening.rb', line 4 def twilight @twilight end |