Sha256: 0db2d3f2bb1fdc5a5c8cb24016cc64deedc54b191fa76ee757f2b52f94c9dab7

Contents?: true

Size: 800 Bytes

Versions: 3

Compression:

Stored size: 800 Bytes

Contents

module Experian
  class DataDictionary

    def self.en_0162_column_name
      'Individual Education'
    end

    def self.en_0162_description
      'Information is compiled from self-reported surveys, derived based on occupational information, or calculated through the application of predictive models.'
    end

    def self.en_0162(key)
      likely = {
        '1' => 'Likely',
        '5' => 'Extremely Likely'
      }
      education = {
        '1' => 'High School Diploma',
        '2' => 'Some College',
        '3' => 'Bachelor Degree',
        '4' => 'Graduate Degree',
        '5' => 'Less Than High School Diploma'
      }
      return 'Unknown' if key.size != 2 or education[key[1]].nil? or likely[key[0]].nil?
      [education[key[1]], likely[key[0]]].join(' - ')
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
experian-data-dictionary-1.4 lib/element_numbers/en_0162.rb
experian-data-dictionary-1.3 lib/element_numbers/en_0162.rb
experian-data-dictionary-1.2 lib/element_numbers/en_0162.rb