class Eddy::TransactionSets::TS856::Loops::HL_Shipment::Repeat

(see Eddy::TransactionSets::TS856::Loops::HL_Shipment::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/856/loops/hl_shipment.rb, line 33
def initialize(store)
  @hl = Eddy::Segments::HL.new(store)
  @td1 = Eddy::Segments::TD1.new(store)
  @td5 = Eddy::Segments::TD5.new(store)
  @ref = Eddy::Segments::REF.new(store)
  @dtm = Eddy::Segments::DTM.new(store)
  @l_n1 = Eddy::TransactionSets::TS856::Loops::N1::Base.new(store)
  @hl_order = Eddy::TransactionSets::TS856::Loops::HL_Order::Base.new(store)
  @hl_tare = Eddy::TransactionSets::TS856::Loops::HL_Tare::Base.new(store)
  @hl_item = Eddy::TransactionSets::TS856::Loops::HL_Item::Base.new(store)
  super(
    store,
    @hl,
    @td1,
    @td5,
    @ref,
    @dtm,
    @l_n1,
    @hl_order,
    @hl_tare,
    @hl_item,
  )
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/856/loops/hl_shipment.rb, line 97
def DTM()
  yield(@dtm) if block_given?
  return @dtm
end
HL() { |hl| ... } click to toggle source

(see Eddy::Segments::HL)

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

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 61
def HL()
  yield(@hl) if block_given?
  return @hl
end
HL_ITEM(&block) click to toggle source

(see Eddy::TransactionSets::TS856::Loops::HL_Item::Base)

@yieldparam [Eddy::TransactionSets::TS856::Loops::HL_Item::Repeat] @return [Eddy::TransactionSets::TS856::Loops::HL_Item::Repeat]

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 145
def HL_ITEM(&block)
  if block_given?
    @hl_item.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
HL_ORDER(&block) click to toggle source

(see Eddy::TransactionSets::TS856::Loops::HL_Order::Base)

@yieldparam [Eddy::TransactionSets::TS856::Loops::HL_Order::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 119
def HL_ORDER(&block)
  if block_given?
    @hl_order.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
HL_TARE(&block) click to toggle source

(see Eddy::TransactionSets::TS856::Loops::HL_Tare::Base)

@yieldparam [Eddy::TransactionSets::TS856::Loops::HL_Tare::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 132
def HL_TARE(&block)
  if block_given?
    @hl_tare.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
L_N1(&block) click to toggle source

(see Eddy::TransactionSets::TS856::Loops::N1::Base)

@yieldparam [Eddy::TransactionSets::TS856::Loops::N1::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 106
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
REF() { |ref| ... } click to toggle source

(see Eddy::Segments::REF)

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

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 88
def REF()
  yield(@ref) if block_given?
  return @ref
end
TD1() { |td1| ... } click to toggle source

(see Eddy::Segments::TD1)

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

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 70
def TD1()
  yield(@td1) if block_given?
  return @td1
end
TD5() { |td5| ... } click to toggle source

(see Eddy::Segments::TD5)

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

# File lib/definitions/transaction_sets/manual/856/loops/hl_shipment.rb, line 79
def TD5()
  yield(@td5) if block_given?
  return @td5
end