Class: Eddy::TransactionSets::TS846::Loops::QTY::Repeat
- Inherits:
-
Models::Loop::Repeat
- Object
- Models::Loop::Repeat
- Eddy::TransactionSets::TS846::Loops::QTY::Repeat
- Defined in:
- lib/definitions/transaction_sets/manual/846/loops/qty.rb
Overview
Loop Summary:
- Repeat: 99
- Components:
- QTY
- DTM
- SCH (loop)
Instance Attribute Summary
Attributes inherited from Models::Loop::Repeat
Instance Method Summary collapse
-
#DTM {|| ... } ⇒ Eddy::Segments::DTM
Segment Summary:.
- #initialize(store) ⇒ void constructor
-
#L_SCH {|| ... } ⇒ void
Loop Summary:.
-
#QTY {|| ... } ⇒ Eddy::Segments::QTY
Segment Summary:.
Methods inherited from Models::Loop::Repeat
Constructor Details
#initialize(store) ⇒ void
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/definitions/transaction_sets/manual/846/loops/qty.rb', line 27 def initialize(store) @qty = Eddy::Segments::QTY.new(store) @dtm = Eddy::Segments::DTM.new(store) @l_sch = Eddy::TransactionSets::TS846::Loops::SCH::Base.new(store) super( store, @qty, @dtm, @l_sch, ) end |
Instance Method Details
#DTM {|| ... } ⇒ Eddy::Segments::DTM
Segment Summary:
- Id: DTM
- Name: Date/Time Reference
- Purpose: To specify pertinent dates and times.
52 53 54 55 |
# File 'lib/definitions/transaction_sets/manual/846/loops/qty.rb', line 52 def DTM() yield(@dtm) if block_given? return @dtm end |
#L_SCH {|| ... } ⇒ void
This method returns an undefined value.
Loop Summary:
- Repeat: 25
- Components:
- QTY
- DTM
61 62 63 64 65 66 67 68 |
# File 'lib/definitions/transaction_sets/manual/846/loops/qty.rb', line 61 def L_SCH(&block) if block_given? @l_sch.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end |
#QTY {|| ... } ⇒ Eddy::Segments::QTY
Segment Summary:
- Id: QTY
- Name: Quantity Information
- Purpose: To specify quantity information
43 44 45 46 |
# File 'lib/definitions/transaction_sets/manual/846/loops/qty.rb', line 43 def QTY() yield(@qty) if block_given? return @qty end |