lib/zakuro/version/gihou/stella/solar/value.rb in zakuro-0.7.2 vs lib/zakuro/version/gihou/stella/solar/value.rb in zakuro-0.8.0
- old
+ new
@@ -14,22 +14,24 @@
module Solar
#
# Value 太陽補正値
#
module Value
- #
- # 太陽の運行による補正値を算出する
- #
- # @param [SolarTerm] solar_location 入定気
- #
- # @return [Integer] 補正値
- #
- def self.get(solar_location:)
- remainder = solar_location.remainder
+ class << self
+ #
+ # 太陽の運行による補正値を算出する
+ #
+ # @param [SolarTerm] solar_location 入定気
+ #
+ # @return [Integer] 補正値
+ #
+ def get(solar_location:)
+ remainder = solar_location.remainder
- row = Adjustment.specify(index: solar_location.index)
+ row = Adjustment.specify(index: solar_location.index)
- Calculation::Solar::ChoukeiValue.get(remainder: remainder, row: row)
+ Calculation::Solar::ChoukeiValue.get(remainder: remainder, row: row)
+ end
end
end
end
end
end