class Eddy::TransactionSets::TS846::Loops::QTY::Repeat

(see Eddy::TransactionSets::TS846::Loops::QTY::Base)

Public Class Methods

new(store) click to toggle source

@param store [Eddy::Data::Store] @return [void]

Calls superclass method Eddy::Models::Loop::Repeat::new
# 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

Public Instance Methods

DTM() { |dtm| ... } click to toggle source

(see Eddy::Segments::DTM)

@yieldparam [Eddy::Segments::DTM] @return [Eddy::Segments::DTM]

# File lib/definitions/transaction_sets/manual/846/loops/qty.rb, line 52
def DTM()
  yield(@dtm) if block_given?
  return @dtm
end
L_SCH(&block) click to toggle source

(see Eddy::TransactionSets::TS846::Loops::SCH::Base)

@yieldparam [Eddy::TransactionSets::TS846::Loops::SCH::Repeat] @return [void]

# 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() { |qty| ... } click to toggle source

(see Eddy::Segments::QTY)

@yieldparam [Eddy::Segments::QTY] @return [Eddy::Segments::QTY]

# File lib/definitions/transaction_sets/manual/846/loops/qty.rb, line 43
def QTY()
  yield(@qty) if block_given?
  return @qty
end