Sha256: cb7e832b52ccdf10ff8f10bf7247930c11a70dc13b1a688e79d0ee656be309c4

Contents?: true

Size: 710 Bytes

Versions: 1

Compression:

Stored size: 710 Bytes

Contents

module Metro2::Records
  class J1Segment < Record
    LENGTH = 100
    @fields = []

    alphanumeric_const_field :segment_identifier, 2, 'J1'
    alphanumeric_const_field :reserved, 1, nil
    alphanumeric_field :surname, 25, Metro2::ALPHANUMERIC_PLUS_DASH
    alphanumeric_field :first_name, 20, Metro2::ALPHANUMERIC_PLUS_DASH
    alphanumeric_field :middle_name, 20, Metro2::ALPHANUMERIC_PLUS_DASH
    alphanumeric_field :generation_code, 1
    numeric_field :social_security_number, 9
    date_field :date_of_birth
    numeric_field :telephone_number, 10
    alphanumeric_field :ecoa_code, 1
    alphanumeric_field :consumer_information_indicator, 2
    alphanumeric_const_field :reserved, 1, nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metro2_format-1.0.0 lib/metro_2/records/j1_segment.rb