Class: Eddy::TransactionSets::TS856::Loops::HL_Order::Repeat

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

Overview

Loop Summary:

  • Repeat: 1
  • Components:
    • HL
    • PRF

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_order.rb', line 26

def initialize(store)
  @hl = Eddy::Segments::HL.new(store)
  @prf = Eddy::Segments::PRF.new(store)
  super(
    store,
    @hl,
    @prf,
  )
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_order.rb', line 40

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

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

Segment Summary:

  • Id: PRF
  • Name: Purchase Order Reference
  • Purpose: To provide reference to a specific purchase order.

Yield Parameters:

Returns:



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

def PRF()
  yield(@prf) if block_given?
  return @prf
end