Class: Eddy::TransactionSets::TS856::Loops::HL_Tare::Repeat

Inherits:
Models::Loop::Repeat show all
Defined in:
lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb

Overview

Loop Summary:

  • Repeat: 1
  • Components:
    • HL
    • MAN

Instance Attribute Summary

Attributes inherited from Models::Loop::Repeat

#components, #store

Instance Method Summary collapse

Methods inherited from Models::Loop::Repeat

#all_contents, #repeat

Constructor Details

#initialize(store) ⇒ void

Parameters:



26
27
28
29
30
31
32
33
34
# File 'lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb', line 26

def initialize(store)
  @hl = Eddy::Segments::HL.new(store)
  @man = Eddy::Segments::MAN.new(store)
  super(
    store,
    @hl,
    @man,
  )
end

Instance Method Details

#HL {|| ... } ⇒ Eddy::Segments::HL

Segment Summary:

  • Id: HL
  • Name: Hierarchical Level
  • Purpose: To identify dependencies among and the content of hierarchically related groups of data segments.

Yield Parameters:

Returns:



40
41
42
43
# File 'lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb', line 40

def HL()
  yield(@hl) if block_given?
  return @hl
end

#MAN {|| ... } ⇒ Eddy::Segments::MAN

Segment Summary:

  • Id: MAN
  • Name: Marks and Numbers
  • Purpose: To indicate identifying marks and numbers for shipping containers.

Yield Parameters:

Returns:



49
50
51
52
# File 'lib/definitions/transaction_sets/manual/856/loops/hl_tare.rb', line 49

def MAN()
  yield(@man) if block_given?
  return @man
end