Class: Eddy::TransactionSets::TS856::Loops::N1::Repeat

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

Overview

Loop Summary:

  • Repeat: 200
  • Components:
    • N1
    • N3
    • N4

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:



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/definitions/transaction_sets/manual/856/loops/n1.rb', line 27

def initialize(store)
  @n1 = Eddy::Segments::N1.new(store)
  @n3 = Eddy::Segments::N3.new(store)
  @n4 = Eddy::Segments::N4.new(store)
  super(
    store,
    @n1,
    @n3,
    @n4,
  )
end

Instance Method Details

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

Segment Summary:

  • Id: N1
  • Name: Name
  • Purpose: To identify a party by type of organization, name, and code

Yield Parameters:

Returns:



43
44
45
46
# File 'lib/definitions/transaction_sets/manual/856/loops/n1.rb', line 43

def N1()
  yield(@n1) if block_given?
  return @n1
end

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

Segment Summary:

  • Id: N3
  • Name: Address Information
  • Purpose: To specify the location of the named party

Yield Parameters:

Returns:



52
53
54
55
# File 'lib/definitions/transaction_sets/manual/856/loops/n1.rb', line 52

def N3()
  yield(@n3) if block_given?
  return @n3
end

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

Segment Summary:

  • Id: N4
  • Name: Geographic Location
  • Purpose: To specify the geographic place of the named party

Yield Parameters:

Returns:



61
62
63
64
# File 'lib/definitions/transaction_sets/manual/856/loops/n1.rb', line 61

def N4()
  yield(@n4) if block_given?
  return @n4
end