Class: Eddy::TransactionSets::TS810::Loops::IT1::Repeat
- Inherits:
-
Models::Loop::Repeat
- Object
- Models::Loop::Repeat
- Eddy::TransactionSets::TS810::Loops::IT1::Repeat
- Defined in:
- lib/definitions/transaction_sets/manual/810/loops/it1.rb
Overview
Loop Summary:
- Repeat: 200,000
- Components:
- IT1
- CTP
- PID (loop)
- SAC (loop)
Instance Attribute Summary
Attributes inherited from Models::Loop::Repeat
Instance Method Summary collapse
-
#CTP {|| ... } ⇒ Eddy::Segments::CTP
Segment Summary:.
- #initialize(store) ⇒ void constructor
-
#IT1 {|| ... } ⇒ Eddy::Segments::IT1
Segment Summary:.
-
#L_PID {|| ... } ⇒ void
Loop Summary:.
-
#L_SAC {|| ... } ⇒ void
Loop Summary:.
Methods inherited from Models::Loop::Repeat
Constructor Details
#initialize(store) ⇒ void
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/definitions/transaction_sets/manual/810/loops/it1.rb', line 29 def initialize(store) @it1 = Eddy::Segments::IT1.new(store) @ctp = Eddy::Segments::CTP.new(store) @l_pid = Eddy::TransactionSets::TS810::Loops::PID::Base.new(store) @l_sac = Eddy::TransactionSets::TS810::Loops::SAC::Base.new(store) super( store, @it1, @ctp, @l_pid, @l_sac, ) end |
Instance Method Details
#CTP {|| ... } ⇒ Eddy::Segments::CTP
Segment Summary:
- Id: CTP
- Name: Pricing Information
- Purpose: To specify pricing information.
56 57 58 59 |
# File 'lib/definitions/transaction_sets/manual/810/loops/it1.rb', line 56 def CTP() yield(@ctp) if block_given? return @ctp end |
#IT1 {|| ... } ⇒ Eddy::Segments::IT1
Segment Summary:
- Id: IT1
- Name: Baseline Item Data (Invoice)
- Purpose: To specify the basic and most frequently used line item data for the invoice and related transactions.
47 48 49 50 |
# File 'lib/definitions/transaction_sets/manual/810/loops/it1.rb', line 47 def IT1() yield(@it1) if block_given? return @it1 end |
#L_PID {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 1000
- Components:
- PID
65 66 67 68 69 70 71 72 |
# File 'lib/definitions/transaction_sets/manual/810/loops/it1.rb', line 65 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 |
#L_SAC {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 25
- Components:
- SAC
78 79 80 81 82 83 84 85 |
# File 'lib/definitions/transaction_sets/manual/810/loops/it1.rb', line 78 def L_SAC(&block) if block_given? @l_sac.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end |