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
    • N2
    • N3
    • N4
    • PER

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:



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 29

def initialize(store)
  @n1 = Eddy::Segments::N1.new(store)
  @n2 = Eddy::Segments::N2.new(store)
  @n3 = Eddy::Segments::N3.new(store)
  @n4 = Eddy::Segments::N4.new(store)
  @per = Eddy::Segments::PER.new(store)
  super(
    store,
    @n1,
    @n2,
    @n3,
    @n4,
    @per,
  )
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:



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

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

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

Segment Summary:

  • Id: N2
  • Name: Additional Name Information
  • Purpose: To identify a party by type of organization, name, and code.

Yield Parameters:

Returns:



58
59
60
61
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 58

def N2()
  yield(@n2) if block_given?
  return @n2
end

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

Segment Summary:

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

Yield Parameters:

Returns:



67
68
69
70
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 67

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:



76
77
78
79
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 76

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

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

Segment Summary:

  • Id: PER
  • Name: Administrative Communications Contact
  • Purpose: To identify a person or office to whom administrative communications should be directed

Yield Parameters:

Returns:



85
86
87
88
# File 'lib/definitions/transaction_sets/manual/850/loops/n1.rb', line 85

def PER()
  yield(@per) if block_given?
  return @per
end