experian-data-dictionary 1.4 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/docs/data-dictionary-small-business.pdf +0 -0
- data/experian_data_dictionary.gemspec +1 -1
- data/lib/element_numbers/en_0000.rb +3 -1
- data/lib/element_numbers/en_0100.rb +5 -1
- data/lib/element_numbers/en_0103.rb +3 -1
- data/lib/element_numbers/en_0107.rb +2 -0
- data/lib/element_numbers/en_0108.rb +15 -0
- data/lib/element_numbers/en_0110.rb +2 -0
- data/lib/element_numbers/en_0112.rb +2 -0
- data/lib/element_numbers/en_0113.rb +2 -0
- data/lib/element_numbers/en_0118.rb +3 -1
- data/lib/element_numbers/en_0119.rb +2 -0
- data/lib/element_numbers/en_0130.rb +2 -0
- data/lib/element_numbers/en_0131.rb +2 -0
- data/lib/element_numbers/en_0132.rb +5 -1
- data/lib/element_numbers/en_0133.rb +2 -0
- data/lib/element_numbers/en_0134.rb +2 -0
- data/lib/element_numbers/en_0135.rb +2 -0
- data/lib/element_numbers/en_0136.rb +2 -0
- data/lib/element_numbers/en_0137.rb +2 -0
- data/lib/element_numbers/en_0138.rb +2 -0
- data/lib/element_numbers/en_0139.rb +2 -0
- data/lib/element_numbers/en_0140.rb +2 -0
- data/lib/element_numbers/en_0141.rb +2 -0
- data/lib/element_numbers/en_0155.rb +2 -0
- data/lib/element_numbers/en_0156.rb +2 -0
- data/lib/element_numbers/en_0160.rb +2 -0
- data/lib/element_numbers/en_0162.rb +2 -0
- data/lib/element_numbers/en_0164.rb +2 -0
- data/lib/element_numbers/en_0174.rb +2 -0
- data/lib/element_numbers/en_0177.rb +25 -0
- data/lib/element_numbers/en_0601.rb +19 -0
- data/lib/element_numbers/en_0711.rb +2 -0
- data/lib/element_numbers/en_0715.rb +2 -0
- data/lib/element_numbers/en_0716.rb +2 -0
- data/lib/element_numbers/en_0717.rb +2 -0
- data/lib/element_numbers/en_310M.rb +2 -0
- data/lib/element_numbers/en_313HH.rb +161 -0
- data/lib/element_numbers/en_8102.rb +22 -0
- data/lib/element_numbers/en_8103.rb +22 -0
- data/lib/element_numbers/en_8109.rb +22 -0
- data/lib/element_numbers/en_8123.rb +22 -0
- data/lib/element_numbers/en_8128.rb +22 -0
- data/lib/element_numbers/en_8133.rb +22 -0
- data/lib/element_numbers/en_8136.rb +22 -0
- data/lib/element_numbers/en_8137.rb +22 -0
- data/lib/element_numbers/en_8180.rb +22 -0
- data/lib/element_numbers/en_8181.rb +22 -0
- data/lib/element_numbers/en_8502.rb +4 -0
- data/lib/element_numbers/en_8503.rb +4 -0
- data/lib/element_numbers/en_8504.rb +4 -0
- data/lib/element_numbers/en_8505.rb +4 -0
- data/lib/element_numbers/en_8509.rb +52 -0
- data/lib/element_numbers/en_8519.rb +4 -0
- data/lib/element_numbers/en_8523.rb +52 -0
- data/lib/element_numbers/en_8525.rb +4 -0
- data/lib/element_numbers/en_8526.rb +4 -0
- data/lib/element_numbers/en_8528.rb +4 -0
- data/lib/element_numbers/en_8531.rb +4 -0
- data/lib/element_numbers/en_8532.rb +4 -0
- data/lib/element_numbers/en_8533.rb +4 -0
- data/lib/element_numbers/en_8536.rb +52 -0
- data/lib/element_numbers/en_8537.rb +52 -0
- data/lib/element_numbers/en_8538.rb +4 -0
- data/lib/element_numbers/en_8574.rb +4 -0
- data/lib/element_numbers/en_8580.rb +52 -0
- data/lib/element_numbers/en_8581.rb +52 -0
- data/lib/element_numbers/en_A107.rb +2 -0
- data/lib/element_numbers/en_B000.rb +5 -3
- data/lib/element_numbers/en_B2185.rb +2 -0
- data/lib/element_numbers/en_B3010.rb +2 -0
- data/lib/element_numbers/en_B3076.rb +22 -0
- data/lib/element_numbers/en_B3080.rb +22 -0
- data/lib/element_numbers/en_B3081.rb +22 -0
- data/lib/element_numbers/en_B3200.rb +22 -0
- data/lib/element_numbers/en_B3225.rb +22 -0
- data/lib/element_numbers/en_B3226.rb +22 -0
- data/lib/element_numbers/en_B3227.rb +22 -0
- data/lib/element_numbers/en_B3251.rb +22 -0
- data/lib/element_numbers/en_B5011.rb +2 -0
- data/lib/element_numbers/en_B5013.rb +2 -0
- data/lib/element_numbers/en_B5014.rb +2 -0
- data/lib/element_numbers/en_B5016.rb +2 -0
- data/lib/element_numbers/en_D105N.rb +2 -0
- data/lib/element_numbers/en_D105S.rb +33 -0
- data/lib/element_numbers/en_D200.rb +2 -0
- data/lib/element_numbers/en_F031.rb +2 -0
- data/lib/element_numbers/en_G2001.rb +2 -0
- data/lib/element_numbers/en_G2514.rb +2 -0
- data/lib/element_numbers/en_G2516.rb +2 -0
- data/lib/element_numbers/en_G2601.rb +2 -0
- data/lib/element_numbers/en_G2602.rb +2 -0
- data/lib/element_numbers/en_G2603.rb +2 -0
- data/lib/element_numbers/en_GEO6.rb +2 -0
- data/lib/element_numbers/en_L000.rb +2 -0
- data/lib/element_numbers/en_P213E.rb +2 -0
- data/lib/element_numbers/en_P213H.rb +2 -0
- data/lib/element_numbers/en_P213W.rb +2 -0
- data/lib/element_numbers/en_P400.rb +4 -0
- data/lib/element_numbers/en_T2000.rb +2 -0
- data/lib/element_numbers/en_V000.rb +2 -0
- data/lib/element_numbers/en_Y000.rb +2 -0
- data/lib/experian.rb +5 -0
- data/lib/helpers.rb +0 -0
- data/small_business_dif.txt +3 -0
- data/spec/functional/en_0177_spec.rb +21 -0
- data/spec/functional/en_0601_spec.rb +21 -0
- data/spec/functional/en_313HH_spec.rb +21 -0
- data/spec/functional/en_8102_spec.rb +19 -0
- data/spec/functional/en_8103_spec.rb +19 -0
- data/spec/functional/en_8109_spec.rb +19 -0
- data/spec/functional/en_8123_spec.rb +19 -0
- data/spec/functional/en_8128_spec.rb +19 -0
- data/spec/functional/en_8133_spec.rb +19 -0
- data/spec/functional/en_8136_spec.rb +19 -0
- data/spec/functional/en_8137_spec.rb +19 -0
- data/spec/functional/en_8180_spec.rb +19 -0
- data/spec/functional/en_8181_spec.rb +19 -0
- data/spec/functional/en_8509_spec.rb +19 -0
- data/spec/functional/en_8523_spec.rb +19 -0
- data/spec/functional/en_8536_spec.rb +19 -0
- data/spec/functional/en_8537_spec.rb +19 -0
- data/spec/functional/en_8580_spec.rb +19 -0
- data/spec/functional/en_8581_spec.rb +19 -0
- data/spec/functional/en_B3076_spec.rb +19 -0
- data/spec/functional/en_B3080_spec.rb +19 -0
- data/spec/functional/en_B3081_spec.rb +19 -0
- data/spec/functional/en_B3200_spec.rb +19 -0
- data/spec/functional/en_B3225_spec.rb +19 -0
- data/spec/functional/en_B3226_spec.rb +19 -0
- data/spec/functional/en_B3227_spec.rb +19 -0
- data/spec/functional/en_B3251_spec.rb +19 -0
- metadata +90 -4
- data/.rspec +0 -2
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'Working Couples'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_f031_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_f031_description
|
10
12
|
'ConsumerView Profitability Score works to identifying households likely to pay their debts and ranks households that allow marketers to target the best prospects based on: profitability approval rates response rates likelihood to perform as prescribed'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'2000 % Population Age < 4'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_g2001_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_g2001_description
|
10
12
|
'% Population Age < 4 is a 2000 Census demographic statistic. 2000 Census data reflects information collected on 118 million housing units and 281 million people by the US Census Bureau about households and individuals within a geographic area. These statistics are provided at the lowest possible geographical level (i.e. census tract or block group). This element represents a 100-percent characteristic (short form), where a limited number of questions were asked of every person and housing unit in the United States. Information such as: household relationship, sex, age, Hispanic or Latino origin, race, tenure (whether the home is owned or rented) and vacancy characteristics.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'Current State Estimated Family Income Decile'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_g2514_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_g2514_description
|
10
12
|
'Current state Estimated Family Income Deciles is an Experian derived statistic using current Estimated Median Household Income indexed within State and ranked on a decile basis. 2000 Census data reflects information collected on 118 million housing units and 281 million people by the US Census Bureau about households and individuals within a geographic area.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'Current CBSA Estimated Family Income Decile'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_g2516_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_g2516_description
|
10
12
|
'Current CBSA Estimated Family Income Deciles is an Experian derived statistic using current Estimated Median Household Income indexed within CBSA and ranked on a decile basis. 2000 Census data reflects information collected on 118 million housing units and 281 million people by the US Census Bureau about households and individuals within a geographic area.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'2000 CBSA Code'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_g2601_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_g2601_description
|
10
12
|
'CBSA (Core Based Statistical Area) Codes have been developed by the Office of Management and Budget (OMB) to re-define the 1990 Metropolitan Statistical Areas (MSA). The terms Metropolitan, Primary Metropolitan (PMSA), and Consolidated Metropolitan Statistical Areas (CMSA) have been replaced by Core Based, Micropolitan, Metropolitan, and Combined Statistical Areas and Metropolitan Divisions. These are based on county populations. The terms Primary and Consolidated Metropolitan Statistical Area are also no longer used. A Metropolitan Statistical Area has a population of 50,000 or greater. There are 49 new Metropolitan Statistical Areas defined bringing the total to 362 from the previous 313. Metropolitan Statistical Areas that have a population of 2,500,000 or greater may be further divided into Metropolitan Divisions. Eleven Metropolitan Statistical Areas have been divided into a total of 29 Metropolitan Divisions. A Micropolitan Statistical Area is a newly defined entity that has a population between 10,000 and 49,999. There are 560 Micropolitan Statistical Areas. Collectively, Micropolitan and Metropolitan Statistical Areas are referred to as Core Based Statistical Areas (CBSAs). CBSAs may be rolled up into Combined Statistical Areas (CSAs). There are presently 116 CSAs comprising 314 CBSAs. The Office of Management & Budget further notes that while cities and towns (NECTA\'s) have also been re-defined and made available (similar to 1990 standards), it recommends users adapt to county standards for consistency of comparison.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'2000 CBSA Type'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_g2602_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_g2602_description
|
10
12
|
'CBSA (Core Based Statistical Area) type has been developed to differntiate between Metropolitan, Micropolitan and Rural areas / CBSA codes. A Metropolitan Statistical Area has a population of 50,000 or greater. A Micropolitan Statistical Area is a newly defined entity that has a population between 10,000 and 49,999.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'2000 Rural-Urban County Size Code'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_g2603_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_g2603_description
|
10
12
|
'Rural-Urban County Size Code Codes is a 1 position Rural/Urban continuum code from Economic Research Services. The Rural-Urban County Size Code codes are Rural-Urban Continuum Codes developed by The Economic Research Service of the U.S. Department of Agriculture (ERS/USDA). These codes distinguish counties within Metropolitan Statistical Areas (Metro) by the population of the CBSA, and counties not in Metropolitan Statistical Areas (Non-Metro)-they may be in Micropolitan Statistical Areas or not in any CBSA at all-by degree of urbanization and adjacency to one or more Metropolitan Statistical Areas. The Metro and Non-Metro counties have been subdivided into three and six subgroups, respectively, resulting in nine county classifications. This allows for analysis and selection by finer distinction than the simple Metro and Non-Metro classification, CBSA type, or Nielsen County Size Code.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'2010 Geo Code'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_geo6_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_geo6_description
|
10
12
|
'Geo Codes are numeric symbols assigned for the identification of geographic entities such as state, county, tract, block, groups, etc., by the U.S. Census Bureau. Every geographic
|
11
13
|
entity recognized by the Census Bureau is assigned one or more geographic codes. A geo code is geographic presentation that shows the geographic entities in a
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'2000 Geo Mandatory Append'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_l000_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_l000_description
|
10
12
|
'The Geo mandatory append is required when any data from the geo code process (L and K file types) is appended. It consists of a match level and street match level.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'Inc Producing Assets IPA V3'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_p213e_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_p213e_description
|
10
12
|
'Income Producing Assets (IPA) is one of the models that are used to derive the P$YCLE Financial Markets. This model specifically tries to predict real worth or asset value of the household. IPA estimates affluence within ten ranges.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'Net Worth V3'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_p213w_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_p213w_description
|
10
12
|
'Net Worth is defined as a household\'s total financial assets minus its liabilities. Assets include financial holdings such as deposit accounts, investments and home value. Liabilities include loans, mortgages and credit card debt.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'GreenAware'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_p400_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_p400_description
|
10
12
|
'GreenAware Segmentation targeting system includes attitudes, opinions, lifestyle, buying behavior, and media usage. Based on the distinctive mindset of consumers towards the environment, we can better
|
11
13
|
understand four distinct consumer segments:
|
@@ -21,6 +23,8 @@ understand four distinct consumer segments:
|
|
21
23
|
'GreenAware Tiers'
|
22
24
|
end
|
23
25
|
|
26
|
+
def self.en_p400a_value_description(key); ''; end
|
27
|
+
|
24
28
|
def self.en_p400a_description
|
25
29
|
'GreenAware Segmentation targeting system includes attitudes, opinions, lifestyle, buying behavior, and media usage based on the distinctive mindset of consumers toward the Environment. GreenAware Tiers offers
|
26
30
|
ten levels of additional ranking detail for each of the four GreenAware segments which include: Behavioral Greens, Think Greens, Potential Greens and True Browns. The higher the number within the index, the
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'Discretionary Spend Estimate'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_t2000_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_t2000_description
|
10
12
|
'Discretionary Spend Estimate predicts the dollar estimate of annual spend on non-essential, discretionary expenses such as household furniture, alcohol and tobacco, donations, dining out, education, reading, personal care and entertainment (fees, audio/visual equipment, toys, hobbies, pets, playground equipment and other equipment). Represents an actual dollar amount.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'New Median Mandatory Append'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_v000_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_v000_description
|
10
12
|
'The New Median mandatory append is required when any data from the New Median file is appended. It consists of a match level.'
|
11
13
|
end
|
@@ -6,6 +6,8 @@ module Experian
|
|
6
6
|
'Census Demographic Match Level Mandatory Append'
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.en_y000_value_description(key); ''; end
|
10
|
+
|
9
11
|
def self.en_y000_description
|
10
12
|
'The Census Demographic Match Level mandatory append is required when any 2000 Census demographic data is appended. It consists of a match level.'
|
11
13
|
end
|
data/lib/experian.rb
CHANGED
@@ -16,6 +16,11 @@ module Experian
|
|
16
16
|
self.send("en_#{column}_column_name")
|
17
17
|
end
|
18
18
|
|
19
|
+
def self.value_description(column)
|
20
|
+
column = column.to_s.downcase.gsub(/\s+/, '')
|
21
|
+
self.send("en_#{column}_value_description")
|
22
|
+
end
|
23
|
+
|
19
24
|
def self.description(column)
|
20
25
|
column = column.to_s.downcase.gsub(/\s+/, '')
|
21
26
|
self.send("en_#{column}_description")
|
data/lib/helpers.rb
ADDED
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0177' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0177','1Y') ).to eq('Confirmed Presence of Children') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0177','5N') ).to eq('Inferred No Children Present') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0177','00') ).to be_nil }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0177',' ') ).to eq('Unknown') }
|
10
|
+
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0177','20') ).to be_nil }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0177','A') ).to be_nil }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0177','R') ).to be_nil }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0601' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0601','1') ).to eq(1) }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0601','5558768') ).to eq(5558768) }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0601','10000') ).to eq(10000) }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0601',' ') ).to be_nil }
|
10
|
+
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0601','TAA1') ).to eq(1) }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0601','A') ).to be_nil }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0601','R') ).to be_nil }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 313HH' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('313HH','A01') ).to eq('American Royalty') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('313HH','B07') ).to eq('Generational Soup') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('313HH','D15') ).to eq('Sports Utility Families') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('313HH','J34') ).to eq('Aging in Place') }
|
10
|
+
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('313HH','TAA1') ).to be_nil }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('313HH','A') ).to be_nil }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('313HH','R') ).to be_nil }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8102' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8102','Y') ).to eq('Household has indicated they contribute to charities') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8102','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8102','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8102','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8102','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8102','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8102','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8103' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8103','Y') ).to eq('Household has indicated being a pet enthusiast') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8103','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8103','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8103','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8103','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8103','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8103','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8109' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8109','Y') ).to eq('Household has indicated an interest in investing') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8109','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8109','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8109','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8109','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8109','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8109','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8123' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8123','Y') ).to eq('Household has indicated a do-it-yourselfer') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8123','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8123','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8123','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8123','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8123','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8123','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8128' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8128','Y') ).to eq('Household has indicated donating to environmental causes') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8128','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8128','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8128','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8128','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8128','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8128','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8133' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8133','Y') ).to eq('Household has indicated being a mail order multibuyer') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8133','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8133','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8133','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8133','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8133','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8133','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8136' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8136','Y') ).to eq('Household has indicated being dog enthusiasts') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8136','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8136','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8136','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8136','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8136','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8136','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8137' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8137','Y') ).to eq('Household has indicated being cat enthusiasts') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8137','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8137','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8137','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8137','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8137','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8137','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8180' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8180','Y') ).to eq('Household has self reported being active military') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8180','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8180','') ).to eq('Unknown') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8180','1') ).to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('8180','TAA1') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('8180','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8180','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|