Class: Eddy::Segments::N4

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/generated/n4.rb

Overview

Segment Summary:

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

Instance Attribute Summary

Attributes inherited from Models::Segment

#elements, #id, #name, #skip, #store

Instance Method Summary collapse

Methods inherited from Models::Segment

#render

Constructor Details

#initialize(store) ⇒ void

Parameters:



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/definitions/segments/generated/n4.rb', line 12

def initialize(store)
  @id = "N4"
  @name = "Geographic Location"
  @n401 = Eddy::Elements::E19.new(ref: "N401", req: "O")
  @n402 = Eddy::Elements::E156.new(ref: "N402", req: "O")
  @n403 = Eddy::Elements::E116.new(ref: "N403", req: "O")
  @n404 = Eddy::Elements::E26.new(ref: "N404", req: "O")
  super(
    store,
    @n401,
    @n402,
    @n403,
    @n404,
  )
end

Instance Method Details

#N401=(arg) ⇒ void Also known as: CityName=

This method returns an undefined value.

N401

  • Id: 19
  • Name: City Name
  • Type: AN
  • Min/Max: 2/30
  • Description: Free-form text for city name

Parameters:

  • arg (String)


38
39
40
# File 'lib/definitions/segments/generated/n4.rb', line 38

def N401=(arg)
  @n401.value = arg
end

#N402=(arg) ⇒ void Also known as: StateOrProvinceCode=

This method returns an undefined value.

N402

  • Id: 156
  • Name: State or Province Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code (Standard State/Province) as defined by appropriate government agency

Parameters:

  • arg (String)


53
54
55
# File 'lib/definitions/segments/generated/n4.rb', line 53

def N402=(arg)
  @n402.value = arg
end

#N403=(arg) ⇒ void Also known as: PostalCode=

This method returns an undefined value.

N403

  • Id: 116
  • Name: Postal Code
  • Type: ID
  • Min/Max: 3/15
  • Description: Code defining international postal zone code excluding punctuation and blanks (zip code for United States)

Parameters:

  • arg (String)


68
69
70
# File 'lib/definitions/segments/generated/n4.rb', line 68

def N403=(arg)
  @n403.value = arg
end

#N404=(arg) ⇒ void Also known as: CountryCode=

This method returns an undefined value.

N404

  • Id: 26
  • Name: Country Code
  • Type: ID
  • Min/Max: 2/3
  • Description: Code identifying the country

Parameters:

  • arg (String)


83
84
85
# File 'lib/definitions/segments/generated/n4.rb', line 83

def N404=(arg)
  @n404.value = arg
end