class Eddy::TransactionSets::TS856::TS

### Transaction Set Summary:

Constants

FUNCTIONAL_GROUP
ID
NAME

Public Class Methods

new(store) click to toggle source

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

Calls superclass method Eddy::Models::TransactionSet::new
# File lib/definitions/transaction_sets/manual/856/856.rb, line 18
def initialize(store)
  @bsn = Eddy::Segments::BSN.new(store)
  @dtm = Eddy::Segments::DTM.new(store)
  @hl_shipment = Eddy::TransactionSets::TS856::Loops::HL_Shipment::Base.new(store)
  @ctt = Eddy::Segments::CTT.new(store)
  super(
    store,
    @bsn,
    @dtm,
    @hl_shipment,
    @ctt,
  )
end

Public Instance Methods

BSN() { |bsn| ... } click to toggle source

(see Eddy::Segments::BSN)

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

# File lib/definitions/transaction_sets/manual/856/856.rb, line 36
def BSN()
  yield(@bsn) if block_given?
  return @bsn
end
CTT() { |ctt| ... } click to toggle source

(see Eddy::Segments::CTT)

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

# File lib/definitions/transaction_sets/manual/856/856.rb, line 67
def CTT()
  yield(@ctt) if block_given?
  return @ctt
end
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/856.rb, line 45
def DTM()
  yield(@dtm) if block_given?
  return @dtm
end
HL_SHIPMENT(&block) click to toggle source

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

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

# File lib/definitions/transaction_sets/manual/856/856.rb, line 54
def HL_SHIPMENT(&block)
  if block_given?
    @hl_shipment.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end