Sha256: 4b0d12cab746d9baa0c3a7a0ebb0c98b7f6780c767406b9c86c3b8886c38aae6

Contents?: true

Size: 1.46 KB

Versions: 4

Compression:

Stored size: 1.46 KB

Contents

module Eddy
  module TransactionSets
    module TS846
      module Loops
        module SCH

          # ### Loop Summary:
          #
          # - Repeat: 25
          # - Components:
          #   - QTY
          #   - DTM
          class Base < Eddy::Models::Loop::Base
            # @param store [Eddy::Data::Store]
            # @return [void]
            def initialize(store)
              @repeat_limit = 25
              super(store, Repeat)
            end
          end

          # (see Eddy::TransactionSets::TS846::Loops::SCH::Base)
          class Repeat < Eddy::Models::Loop::Repeat
            # @param store [Eddy::Data::Store]
            # @return [void]
            def initialize(store)
              @qty = Eddy::Segments::QTY.new(store)
              @dtm = Eddy::Segments::DTM.new(store)
              super(
                store,
                @qty,
                @dtm,
              )
            end

            # (see Eddy::Segments::QTY)
            #
            # @yieldparam [Eddy::Segments::QTY]
            # @return [Eddy::Segments::QTY]
            def QTY()
              yield(@qty) if block_given?
              return @qty
            end

            # (see Eddy::Segments::DTM)
            #
            # @yieldparam [Eddy::Segments::DTM]
            # @return [Eddy::Segments::DTM]
            def DTM()
              yield(@dtm) if block_given?
              return @dtm
            end
          end

        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.10.0 lib/definitions/transaction_sets/manual/846/loops/sch.rb
eddy-0.9.2 lib/definitions/transaction_sets/manual/846/loops/sch.rb
eddy-0.9.1 lib/definitions/transaction_sets/manual/846/loops/sch.rb
eddy-0.9.0 lib/definitions/transaction_sets/manual/846/loops/sch.rb