Sha256: d28ad6a78f1ee565a3fb56b0d4ac1b498e0c56e69ac7028877e3544c4b0d3044

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_Tare

          # ### Loop Summary:
          #
          # - Repeat: 1
          # - Components:
          #   - HL
          #   - MAN
          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_Tare::Base)
          class Repeat < Eddy::Models::Loop::Repeat
            # @param store [Eddy::Data::Store]
            # @return [void]
            def initialize(store)
              @hl = Eddy::Segments::HL.new(store)
              @man = Eddy::Segments::MAN.new(store)
              super(
                store,
                @hl,
                @man,
              )
            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::MAN)
            #
            # @yieldparam [Eddy::Segments::MAN]
            # @return [Eddy::Segments::MAN]
            def MAN()
              yield(@man) if block_given?
              return @man
            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_tare.rb
eddy-0.9.2 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.9.1 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.9.0 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.8.4 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.8.3 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.8.2 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.8.1 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.8.0 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.7.0 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb
eddy-0.6.0 lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb