Class: Daylight::JulianDateApproximation
- Inherits:
-
Object
- Object
- Daylight::JulianDateApproximation
- Defined in:
- lib/trigger_switch_d/daylight.rb
Overview
Julian date approximation by observer westerly location
Instance Attribute Summary collapse
-
#hour_angle ⇒ Object
:nodoc:all.
Instance Method Summary collapse
-
#initialize(west, date) ⇒ JulianDateApproximation
constructor
A new instance of JulianDateApproximation.
- #to_f ⇒ Object
Constructor Details
#initialize(west, date) ⇒ JulianDateApproximation
Returns a new instance of JulianDateApproximation.
153 154 155 156 157 |
# File 'lib/trigger_switch_d/daylight.rb', line 153 def initialize(west,date) @date = date @west = west @approximation = approximate(@west,@date) end |
Instance Attribute Details
#hour_angle ⇒ Object
:nodoc:all
152 153 154 |
# File 'lib/trigger_switch_d/daylight.rb', line 152 def hour_angle @hour_angle end |
Instance Method Details
#to_f ⇒ Object
162 163 164 |
# File 'lib/trigger_switch_d/daylight.rb', line 162 def to_f @approximation end |