Sha256: aaed5ef3da16abf8ec7b2f20cd82430b12ba3e8a6d86e2e8b419162b540285bd

Contents?: true

Size: 1015 Bytes

Versions: 4

Compression:

Stored size: 1015 Bytes

Contents

module Experian
  class DataDictionary

    # Dwelling Type
    def self.en_0118_column_name
      'Dwelling Type'
    end

    def self.en_0118_value_description(key); ''; end

    def self.en_0118_description
      'Each household is assigned a dwelling type code based on United States Postal Service (USPS) information. Single Family Dwelling Units are residences for one family or living unit (S). If the address contains an apartment number or has a small dwelling size (5 units or less), the code is set to Multi-Family (A). Marginal Multi Family Dwelling Units lack an apartment number and are considered of questionable deliverability (M). Values also include P.O. Boxes (P) and Unknown dwelling types (U).'
    end

    def self.en_0118(key)
      values = {
        'S' => 'Single Family',
        'A' => 'Multi-Family & Condominiums',
        'M' => 'Marginal Multi-Family',
        'P' => 'Post Office Box',
        'U' => 'Unknown'
      }
      key.empty? ? 'Unknown' : values[key]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
experian-data-dictionary-1.4.4 lib/element_numbers/0100/en_0118.rb
experian-data-dictionary-1.4.3 lib/element_numbers/en_0118.rb
experian-data-dictionary-1.4.2 lib/element_numbers/en_0118.rb
experian-data-dictionary-1.4.1 lib/element_numbers/en_0118.rb