Class: Eddy::TransactionSets::TS846::Loops::SCH::Repeat

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

Overview

Loop Summary:

  • Repeat: 25
  • Components:
    • QTY
    • DTM

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/846/loops/sch.rb', line 26

def initialize(store)
  @qty = Eddy::Segments::QTY.new(store)
  @dtm = Eddy::Segments::DTM.new(store)
  super(
    store,
    @qty,
    @dtm,
  )
end

Instance Method Details

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

Segment Summary:

  • Id: DTM
  • Name: Date/Time Reference
  • Purpose: To specify pertinent dates and times.

Yield Parameters:

Returns:



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

def DTM()
  yield(@dtm) if block_given?
  return @dtm
end

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

Segment Summary:

  • Id: QTY
  • Name: Quantity Information
  • Purpose: To specify quantity information

Yield Parameters:

Returns:



40
41
42
43
# File 'lib/definitions/transaction_sets/manual/846/loops/sch.rb', line 40

def QTY()
  yield(@qty) if block_given?
  return @qty
end