Class: Daylight::JulianDateApproximation

Inherits:
Object
  • Object
show all
Defined in:
lib/trigger_switch_d/daylight.rb

Overview

Julian date approximation by observer westerly location

Instance Attribute Summary collapse

Instance Method Summary collapse

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_angleObject

:nodoc:all



152
153
154
# File 'lib/trigger_switch_d/daylight.rb', line 152

def hour_angle
  @hour_angle
end

Instance Method Details

#to_fObject



162
163
164
# File 'lib/trigger_switch_d/daylight.rb', line 162

def to_f
  @approximation
end