class Eddy::Segments::N4

### Segment Summary:

Public Class Methods

new(store) click to toggle source

@param store [Eddy::Data::Store] @return [void]

Calls superclass method Eddy::Models::Segment::new
# 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

Public Instance Methods

CityName=(arg)
Alias for: N401=
CountryCode=(arg)
Alias for: N404=
N401=(arg) click to toggle source

### N401

  • Id: 19

  • Name: City Name

  • Type: AN

  • Min/Max: 2/30

  • Description: Free-form text for city name

@param arg [String] @return [void]

# File lib/definitions/segments/generated/n4.rb, line 38
def N401=(arg)
  @n401.value = arg
end
Also aliased as: CityName=
N402=(arg) click to toggle source

### 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

@param arg [String] @return [void]

# File lib/definitions/segments/generated/n4.rb, line 53
def N402=(arg)
  @n402.value = arg
end
Also aliased as: StateOrProvinceCode=
N403=(arg) click to toggle source

### 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)

@param arg [String] @return [void]

# File lib/definitions/segments/generated/n4.rb, line 68
def N403=(arg)
  @n403.value = arg
end
Also aliased as: PostalCode=
N404=(arg) click to toggle source

### N404

  • Id: 26

  • Name: Country Code

  • Type: ID

  • Min/Max: 2/3

  • Description: Code identifying the country

@param arg [String] @return [void]

# File lib/definitions/segments/generated/n4.rb, line 83
def N404=(arg)
  @n404.value = arg
end
Also aliased as: CountryCode=
PostalCode=(arg)
Alias for: N403=
StateOrProvinceCode=(arg)
Alias for: N402=