Module: Zakuro::Version::Daien::Solar::Value

Defined in:
lib/zakuro/version/daien/stella/solar/value.rb

Overview

Value 太陽補正値

Class Method Summary collapse

Class Method Details

.get(solar_location:) ⇒ Integer

太陽の運行による補正値を算出する

Parameters:

  • solar_location (SolarTerm)

    入定気

Returns:

  • (Integer)

    補正値



29
30
31
32
33
34
35
# File 'lib/zakuro/version/daien/stella/solar/value.rb', line 29

def get(solar_location:)
  remainder = solar_location.remainder

  row = Adjustment.specify(index: solar_location.index)

  Calculation::Solar::ChoukeiValue.get(remainder: remainder, row: row)
end