Class: Eddy::TransactionSets::TS846::Loops::LIN::Repeat
- Inherits:
-
Models::Loop::Repeat
- Object
- Models::Loop::Repeat
- Eddy::TransactionSets::TS846::Loops::LIN::Repeat
- Defined in:
- lib/definitions/transaction_sets/manual/846/loops/lin.rb
Overview
Loop Summary:
- Repeat: 10000
- Components:
- LIN
- PID
- DTM
- CTP
- REF
- SDQ
- SLN (loop)
- QTY (loop)
- N1 (loop)
Instance Attribute Summary
Attributes inherited from Models::Loop::Repeat
Instance Method Summary collapse
-
#CTP {|| ... } ⇒ Eddy::Segments::CTP
Segment Summary:.
-
#DTM {|| ... } ⇒ Eddy::Segments::DTM
Segment Summary:.
- #initialize(store) ⇒ void constructor
-
#L_N1 {|| ... } ⇒ void
Loop Summary:.
-
#L_QTY {|| ... } ⇒ void
Loop Summary:.
-
#L_SLN {|| ... } ⇒ void
Loop Summary:.
-
#LIN {|| ... } ⇒ Eddy::Segments::LIN
Segment Summary:.
-
#PID {|| ... } ⇒ Eddy::Segments::PID
Segment Summary:.
-
#REF {|| ... } ⇒ Eddy::Segments::REF
Segment Summary:.
-
#SDQ {|| ... } ⇒ Eddy::Segments::SDQ
Segment Summary:.
Methods inherited from Models::Loop::Repeat
Constructor Details
#initialize(store) ⇒ void
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 33 def initialize(store) @lin = Eddy::Segments::LIN.new(store) @pid = Eddy::Segments::PID.new(store) @dtm = Eddy::Segments::DTM.new(store) @ctp = Eddy::Segments::CTP.new(store) @ref = Eddy::Segments::REF.new(store) @sdq = Eddy::Segments::SDQ.new(store) @l_sln = Eddy::TransactionSets::TS846::Loops::SLN::Base.new(store) @l_qty = Eddy::TransactionSets::TS846::Loops::QTY::Base.new(store) @l_n1 = Eddy::TransactionSets::TS846::Loops::N1::Base.new(store) super( store, @lin, @pid, @dtm, @ctp, @ref, @sdq, @l_sln, @l_qty, @l_n1, ) end |
Instance Method Details
#CTP {|| ... } ⇒ Eddy::Segments::CTP
Segment Summary:
- Id: CTP
- Name: Pricing Information
- Purpose: To specify pricing information.
88 89 90 91 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 88 def CTP() yield(@ctp) if block_given? return @ctp end |
#DTM {|| ... } ⇒ Eddy::Segments::DTM
Segment Summary:
- Id: DTM
- Name: Date/Time Reference
- Purpose: To specify pertinent dates and times.
79 80 81 82 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 79 def DTM() yield(@dtm) if block_given? return @dtm end |
#L_N1 {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 5
- Components:
- N1
- N2
- N3
- N4
- REF
- PER
141 142 143 144 145 146 147 148 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 141 def L_N1(&block) if block_given? @l_n1.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end |
#L_QTY {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 99
- Components:
- QTY
- DTM
- SCH (loop)
128 129 130 131 132 133 134 135 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 128 def L_QTY(&block) if block_given? @l_qty.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end |
#L_SLN {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 1000
- Components:
- SLN
- PID
115 116 117 118 119 120 121 122 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 115 def L_SLN(&block) if block_given? @l_sln.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end |
#LIN {|| ... } ⇒ Eddy::Segments::LIN
Segment Summary:
- Id: LIN
- Name: Item Identification
- Purpose: To specify basic item identification data.
61 62 63 64 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 61 def LIN() yield(@lin) if block_given? return @lin end |
#PID {|| ... } ⇒ Eddy::Segments::PID
Segment Summary:
- Id: PID
- Name: Product/Item Description
- Purpose: To describe a product or process in coded or free-form format
70 71 72 73 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 70 def PID() yield(@pid) if block_given? return @pid end |
#REF {|| ... } ⇒ Eddy::Segments::REF
Segment Summary:
- Id: REF
- Name: Reference Identification
- Purpose: To specify identifying information.
97 98 99 100 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 97 def REF() yield(@ref) if block_given? return @ref end |
#SDQ {|| ... } ⇒ Eddy::Segments::SDQ
Segment Summary:
- Id: SDQ
- Name: Destination Quantity
- Purpose: To specify destination and quantity detail
106 107 108 109 |
# File 'lib/definitions/transaction_sets/manual/846/loops/lin.rb', line 106 def SDQ() yield(@sdq) if block_given? return @sdq end |