Sha256: 4b874d50aaa5f63256b84343c45b8c786a67c530ec347c090f9e7d2746ddfcec

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

# frozen_string_literal: true

require_relative '../data/single_day'

require_relative './month/bundle'

# :nodoc:
module Zakuro
  #
  # Result 演算結果
  #
  module Result
    #
    # 運用情報
    #
    module Operation
      #
      # Bundle 運用情報
      #
      class Bundle
        # @return [True] 運用あり
        # @return [False] 運用なし
        attr_reader :operated
        # @return [Month::Bundle] 月別履歴情報
        attr_reader :month
        # @return [Data::SingleDay] 計算値
        attr_reader :original

        #
        # 初期化
        #
        # @param [True, False] operated 運用有無
        # @param [Month::Bundle] month 月別履歴情報
        # @param [Data::SingleDay] original 計算値
        #
        def initialize(operated:, month:, original:)
          @operated = operated
          @month = month
          @original = original
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zakuro-0.7.2 lib/zakuro/result/operation/bundle.rb
zakuro-0.7.0 lib/zakuro/result/operation/operation.rb