Sha256: 80fb0857b57432dfae000f1fff258ebe902b09e48deabfb676999f67de5c3e59

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 KB

Contents

module Eddy
  module TransactionSets
    module TS856
      module Loops
        module HL_Order

          # ### Loop Summary:
          #
          # - Repeat: 1
          # - Components:
          #   - HL
          #   - PRF
          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::TS856::Loops::HL_Order::Base)
          class Repeat < Eddy::Models::Loop::Repeat
            # @param store [Eddy::Data::Store]
            # @return [void]
            def initialize(store)
              @hl = Eddy::Segments::HL.new(store)
              @prf = Eddy::Segments::PRF.new(store)
              super(
                store,
                @hl,
                @prf,
              )
            end

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

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

        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
eddy-0.10.0 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.9.2 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.9.1 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.9.0 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.8.4 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.8.3 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.8.2 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.8.1 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.8.0 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.7.0 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb
eddy-0.6.0 lib/definitions/transaction_sets/manual/856/loops/hl_order.rb