Class: Eddy::TransactionSets::TS855::Loops::PO1::Repeat

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

Overview

Loop Summary:

  • Repeat: 100,000
  • Components:
    • PO1
    • PID (loop)
    • ACK (loop)

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:



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/definitions/transaction_sets/manual/855/loops/po1.rb', line 28

def initialize(store)
  @po1 = Eddy::Segments::PO1.new(store)
  @l_pid = Eddy::TransactionSets::TS855::Loops::PID::Base.new(store)
  @l_ack = Eddy::TransactionSets::TS855::Loops::ACK::Base.new(store)
  super(
    store,
    @po1,
    @l_pid,
    @l_ack,
  )
end

Instance Method Details

#L_ACK {|| ... } ⇒ void

This method returns an undefined value.

Loop Summary:

  • Repeat: 104
  • Components:
    • ACK


66
67
68
69
70
71
72
73
# File 'lib/definitions/transaction_sets/manual/855/loops/po1.rb', line 66

def L_ACK(&block)
  if block_given?
    @l_ack.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end

#L_PID {|| ... } ⇒ void

This method returns an undefined value.

Loop Summary:

  • Repeat: 1,000
  • Components:
    • PID


53
54
55
56
57
58
59
60
# File 'lib/definitions/transaction_sets/manual/855/loops/po1.rb', line 53

def L_PID(&block)
  if block_given?
    @l_pid.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end

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

Segment Summary:

  • Id: PO1
  • Name: Baseline Item Data
  • Purpose: To specify basic and most frequently used line item data

Yield Parameters:

Returns:



44
45
46
47
# File 'lib/definitions/transaction_sets/manual/855/loops/po1.rb', line 44

def PO1()
  yield(@po1) if block_given?
  return @po1
end