Sha256: 6e7acd47312d042a35cb9e7051979a8d9fdfee0572f26a282fd13674e62cc41d

Contents?: true

Size: 961 Bytes

Versions: 5

Compression:

Stored size: 961 Bytes

Contents

# frozen_string_literal: true

require_relative '../era/gengou/dated_scroll'

require_relative './abstract_operation_range'

# :nodoc:
module Zakuro
  # :nodoc:
  module Calculation
    # :nodoc:
    module Range
      #
      # DatedOperationRange 運用結果範囲
      #
      class DatedOperationRange < AbstractOperationRange
        #
        # 初期化
        #
        # @param [Context::Context] context 暦コンテキスト
        # @param [Western::Calendar] start_date 開始日
        # @param [Western::Calendar] last_date 終了日
        # @param [Array<Year>] years 年データ(完全範囲)
        #
        def initialize(context:, start_date: Western::Calendar.new,
                       last_date: Western::Calendar.new, years: [])
          scroll = Gengou::DatedScroll.new(start_date: start_date, last_date: last_date)
          super(context: context, scroll: scroll, years: years)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zakuro-0.9.2 lib/zakuro/calculation/range/dated_operation_range.rb
zakuro-0.9.1 lib/zakuro/calculation/range/dated_operation_range.rb
zakuro-0.9.0 lib/zakuro/calculation/range/dated_operation_range.rb
zakuro-0.8.0 lib/zakuro/calculation/range/dated_operation_range.rb
zakuro-0.7.2 lib/zakuro/calculation/range/dated_operation_range.rb