Sha256: e59d61ce75b40fd70c791c0dde4df0e0672ca346c30102b08f6d1135f6c56857

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

module Eddy
  module TransactionSets
    module TS850
      module Loops
        module PID

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

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

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