Sha256: f53dde2cf2d7f0c8b63be12ea34370967ee1ebf96a0a6465d8b0d60846391efb

Contents?: true

Size: 782 Bytes

Versions: 8

Compression:

Stored size: 782 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../../calculation/stella/solar/choukei_value'

require_relative '../../const/number'

require_relative './adjustment'

# :nodoc:
module Zakuro
  # :nodoc:
  module Gihou
    # :nodoc:
    module Solar
      #
      # Value 太陽補正値
      #
      module Value
        #
        # 太陽の運行による補正値を算出する
        #
        # @param [SolarTerm] solar_location 入定気
        #
        # @return [Integer] 補正値
        #
        def self.get(solar_location:)
          remainder = solar_location.remainder

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
zakuro-0.7.2 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.7.0 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.6.1 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.6.0 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.5.0 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.4.0 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.3.0 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.2.0 lib/zakuro/version/gihou/stella/solar/value.rb