Sha256: 1d349985a85b22a9ee95d81eb703fbe7f25cd736fa6cdcf72a93cb1003eb8c04

Contents?: true

Size: 1.46 KB

Versions: 4

Compression:

Stored size: 1.46 KB

Contents

module Eddy
  module TransactionSets
    module TS846
      module Loops
        module SLN

          # ### Loop Summary:
          #
          # - Repeat: 1000
          # - Components:
          #   - SLN
          #   - 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::TS846::Loops::SLN::Base)
          class Repeat < Eddy::Models::Loop::Repeat
            # @param store [Eddy::Data::Store]
            # @return [void]
            def initialize(store)
              @sln = Eddy::Segments::SLN.new(store)
              @pid = Eddy::Segments::PID.new(store)
              super(
                store,
                @sln,
                @pid,
              )
            end

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