Class: EarthTools::Sun::Evening

Inherits:
Object
  • Object
show all
Defined in:
lib/earth_tools/sun/evening.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sunsetObject

Returns the value of attribute sunset.



4
5
6
# File 'lib/earth_tools/sun/evening.rb', line 4

def sunset
  @sunset
end

#twilightObject

Returns the value of attribute twilight.



4
5
6
# File 'lib/earth_tools/sun/evening.rb', line 4

def twilight
  @twilight
end