Class: Eddy::TransactionSets::TS850::Loops::N1::Repeat

Inherits:
Models::Loop::Repeat show all
Defined in:
lib/definitions/transaction_sets/manual/850/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:



35
36
37
38
39
40
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 35

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:



46
47
48
49
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 46

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:



55
56
57
58
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 55

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:



64
65
66
67
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 64

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