Sha256: dec8126169baefddeb80e1e7560f6353dac4df06b4a9a28059dd54c9a867c794
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
module Experian class DataDictionary def self.en_0100_column_name 'Date of Birth' end def self.en_0100_description 'Date of Birth is acquired from public and proprietary files. These sources provide, at a minimum, the year of birth. The birth month is provided where available. Estimated ages are acquired from proprietary data sources and Experian models which estimate the adult age.' end def self.en_0100c_column_name 'Combined Adult Age' end def self.en_0100c_description self.en_0100_description end # CCYYMM def self.en_0100(key) return nil if key.empty? year = key[0..3] month = key.length > 4 ? key[4..5] : nil [month, year].compact.join('/') end def self.en_0100c(key) return nil unless %w(e i u).include?(key[0].downcase) # I noticed another 0100c column that uses M and F which is probably for Male and Female text = case key[0].downcase when 'e' then 'Exact age' when 'i' then 'Estimated age' when 'u' then 'Unknown age' else nil end return [key[1..key.length-1], text].compact.join(' - ') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
experian-data-dictionary-1.3 | lib/element_numbers/en_0100.rb |
experian-data-dictionary-1.2 | lib/element_numbers/en_0100.rb |