Sha256: 3f1f4e567332bac8e7088b3bea7a9ee2d52fd941f1a43afba2c9c94a2cd46e32

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

module Eddy
  module TransactionSets
    module TS850
      module Loops
        module CTP

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

          # (see Eddy::TransactionSets::TS850::Loops::CTP::Base)
          class Repeat < Eddy::Models::Loop::Repeat
            # @param store [Eddy::Data::Store]
            # @return [void]
            def initialize(store)
              @ctp = Eddy::Segments::CTP.new(store)
              super(
                store,
                @ctp,
              )
            end

            # (see Eddy::Segments::CTP)
            #
            # @yieldparam [Eddy::Segments::CTP]
            # @return [Eddy::Segments::CTP]
            def CTP()
              yield(@ctp) if block_given?
              return @ctp
            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/850/loops/ctp.rb
eddy-0.9.2 lib/definitions/transaction_sets/manual/850/loops/ctp.rb
eddy-0.9.1 lib/definitions/transaction_sets/manual/850/loops/ctp.rb
eddy-0.9.0 lib/definitions/transaction_sets/manual/850/loops/ctp.rb