Class: Eddy::TransactionSets::TS846::Loops::SLN::Repeat

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

Overview

Loop Summary:

  • Repeat: 1000
  • Components:
    • SLN
    • PID

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/sln.rb', line 26

def initialize(store)
  @sln = Eddy::Segments::SLN.new(store)
  @pid = Eddy::Segments::PID.new(store)
  super(
    store,
    @sln,
    @pid,
  )
end

Instance Method Details

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

Segment Summary:

  • Id: PID
  • Name: Product/Item Description
  • Purpose: To describe a product or process in coded or free-form format

Yield Parameters:

Returns:



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

def PID()
  yield(@pid) if block_given?
  return @pid
end

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

Segment Summary:

  • Id: SLN
  • Name: Subline Item Detail
  • Purpose: To specify product subline detail item data.

Yield Parameters:

Returns:



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

def SLN()
  yield(@sln) if block_given?
  return @sln
end