Class: Eddy::TransactionSets::TS846::Loops::N1::Repeat

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

Overview

Loop Summary:

  • Repeat: 5
  • Components:
    • N1
    • N2
    • N3
    • N4
    • REF
    • 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:



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

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)
  @ref = Eddy::Segments::REF.new(store)
  @per = Eddy::Segments::PER.new(store)
  super(
    store,
    @n1,
    @n2,
    @n3,
    @n4,
    @ref,
    @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:



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

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:



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

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:



70
71
72
73
# File 'lib/definitions/transaction_sets/manual/846/loops/n1.rb', line 70

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:



79
80
81
82
# File 'lib/definitions/transaction_sets/manual/846/loops/n1.rb', line 79

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:



97
98
99
100
# File 'lib/definitions/transaction_sets/manual/846/loops/n1.rb', line 97

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

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

Segment Summary:

  • Id: REF
  • Name: Reference Identification
  • Purpose: To specify identifying information.

Yield Parameters:

Returns:



88
89
90
91
# File 'lib/definitions/transaction_sets/manual/846/loops/n1.rb', line 88

def REF()
  yield(@ref) if block_given?
  return @ref
end