Class: Eddy::TransactionSets::TS855::Loops::N1::Repeat

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



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

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:



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

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:



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

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:



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

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