experian-data-dictionary 1.0
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 +7 -0
- data/.gitignore +8 -0
- data/.pryrc +3 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +61 -0
- data/README.rdoc +43 -0
- data/Rakefile +32 -0
- data/docs/BCM_Sample_Experian.csv +1 -0
- data/docs/DataDictionary_NonProfit_Experian.pdf +0 -0
- data/experian_data_dictionary.gemspec +21 -0
- data/lib/element_numbers/en_0000.rb +23 -0
- data/lib/element_numbers/en_0100.rb +34 -0
- data/lib/element_numbers/en_0103.rb +19 -0
- data/lib/element_numbers/en_0107.rb +24 -0
- data/lib/element_numbers/en_0108.rb +448 -0
- data/lib/element_numbers/en_0110.rb +20 -0
- data/lib/element_numbers/en_0112.rb +17 -0
- data/lib/element_numbers/en_0113.rb +22 -0
- data/lib/element_numbers/en_0118.rb +20 -0
- data/lib/element_numbers/en_0119.rb +16 -0
- data/lib/element_numbers/en_0130.rb +17 -0
- data/lib/element_numbers/en_0131.rb +18 -0
- data/lib/element_numbers/en_0132.rb +24 -0
- data/lib/element_numbers/en_0133.rb +16 -0
- data/lib/element_numbers/en_0134.rb +22 -0
- data/lib/element_numbers/en_0135.rb +22 -0
- data/lib/element_numbers/en_0136.rb +22 -0
- data/lib/element_numbers/en_0137.rb +22 -0
- data/lib/element_numbers/en_0138.rb +22 -0
- data/lib/element_numbers/en_0139.rb +22 -0
- data/lib/element_numbers/en_0140.rb +22 -0
- data/lib/element_numbers/en_0141.rb +22 -0
- data/lib/element_numbers/en_0155.rb +18 -0
- data/lib/element_numbers/en_0156.rb +18 -0
- data/lib/element_numbers/en_0160.rb +29 -0
- data/lib/element_numbers/en_0162.rb +26 -0
- data/lib/element_numbers/en_0164.rb +28 -0
- data/lib/element_numbers/en_0174.rb +21 -0
- data/lib/element_numbers/en_0711.rb +40 -0
- data/lib/element_numbers/en_0715.rb +22 -0
- data/lib/element_numbers/en_0716.rb +37 -0
- data/lib/element_numbers/en_0717.rb +41 -0
- data/lib/element_numbers/en_310M.rb +76 -0
- data/lib/element_numbers/en_8502.rb +40 -0
- data/lib/element_numbers/en_8503.rb +40 -0
- data/lib/element_numbers/en_8504.rb +40 -0
- data/lib/element_numbers/en_8505.rb +40 -0
- data/lib/element_numbers/en_8519.rb +40 -0
- data/lib/element_numbers/en_8525.rb +40 -0
- data/lib/element_numbers/en_8526.rb +40 -0
- data/lib/element_numbers/en_8528.rb +40 -0
- data/lib/element_numbers/en_8531.rb +40 -0
- data/lib/element_numbers/en_8532.rb +40 -0
- data/lib/element_numbers/en_8533.rb +40 -0
- data/lib/element_numbers/en_8538.rb +40 -0
- data/lib/element_numbers/en_8574.rb +40 -0
- data/lib/element_numbers/en_A107.rb +24 -0
- data/lib/element_numbers/en_B000.rb +20 -0
- data/lib/element_numbers/en_B2185.rb +17 -0
- data/lib/element_numbers/en_B3010.rb +17 -0
- data/lib/element_numbers/en_B5011.rb +17 -0
- data/lib/element_numbers/en_B5013.rb +17 -0
- data/lib/element_numbers/en_B5014.rb +17 -0
- data/lib/element_numbers/en_B5016.rb +17 -0
- data/lib/element_numbers/en_D105N.rb +29 -0
- data/lib/element_numbers/en_D200.rb +19 -0
- data/lib/element_numbers/en_F031.rb +29 -0
- data/lib/element_numbers/en_G2001.rb +15 -0
- data/lib/element_numbers/en_G2514.rb +26 -0
- data/lib/element_numbers/en_G2516.rb +26 -0
- data/lib/element_numbers/en_G2601.rb +14 -0
- data/lib/element_numbers/en_G2602.rb +19 -0
- data/lib/element_numbers/en_G2603.rb +25 -0
- data/lib/element_numbers/en_GE06.rb +28 -0
- data/lib/element_numbers/en_L000.rb +29 -0
- data/lib/element_numbers/en_P213E.rb +36 -0
- data/lib/element_numbers/en_P213H.rb +262 -0
- data/lib/element_numbers/en_P213W.rb +35 -0
- data/lib/element_numbers/en_P400.rb +47 -0
- data/lib/element_numbers/en_T200.rb +20 -0
- data/lib/element_numbers/en_V000.rb +18 -0
- data/lib/element_numbers/en_Y000.rb +20 -0
- data/lib/experian.rb +40 -0
- data/spec/functional/en_0000_spec.rb +24 -0
- data/spec/functional/en_0100_spec.rb +34 -0
- data/spec/functional/en_0103_spec.rb +20 -0
- data/spec/functional/en_0107_spec.rb +21 -0
- data/spec/functional/en_0108_spec.rb +504 -0
- data/spec/functional/en_0110_spec.rb +22 -0
- data/spec/functional/en_0112_spec.rb +19 -0
- data/spec/functional/en_0113_spec.rb +25 -0
- data/spec/functional/en_0118_spec.rb +23 -0
- data/spec/functional/en_0119_spec.rb +19 -0
- data/spec/functional/en_0130_spec.rb +21 -0
- data/spec/functional/en_0131_spec.rb +22 -0
- data/spec/functional/en_0132_spec.rb +18 -0
- data/spec/functional/en_0133_spec.rb +16 -0
- data/spec/functional/en_0134_spec.rb +27 -0
- data/spec/functional/en_0135_spec.rb +27 -0
- data/spec/functional/en_0136_spec.rb +27 -0
- data/spec/functional/en_0137_spec.rb +27 -0
- data/spec/functional/en_0138_spec.rb +27 -0
- data/spec/functional/en_0139_spec.rb +27 -0
- data/spec/functional/en_0140_spec.rb +27 -0
- data/spec/functional/en_0141_spec.rb +27 -0
- data/spec/functional/en_0155_spec.rb +19 -0
- data/spec/functional/en_0156_spec.rb +19 -0
- data/spec/functional/en_0160_spec.rb +22 -0
- data/spec/functional/en_0162_spec.rb +19 -0
- data/spec/functional/en_0164_spec.rb +22 -0
- data/spec/functional/en_0174_spec.rb +21 -0
- data/spec/functional/en_0711_spec.rb +21 -0
- data/spec/functional/en_0715_spec.rb +24 -0
- data/spec/functional/en_0716_spec.rb +24 -0
- data/spec/functional/en_0717_spec.rb +21 -0
- data/spec/functional/en_310M_spec.rb +78 -0
- data/spec/functional/en_8502_spec.rb +22 -0
- data/spec/functional/en_8503_spec.rb +22 -0
- data/spec/functional/en_8504_spec.rb +23 -0
- data/spec/functional/en_8505_spec.rb +22 -0
- data/spec/functional/en_8519_spec.rb +22 -0
- data/spec/functional/en_8525_spec.rb +22 -0
- data/spec/functional/en_8526_spec.rb +22 -0
- data/spec/functional/en_A107_spec.rb +24 -0
- data/spec/functional/en_B2185_spec.rb +18 -0
- data/spec/functional/en_B3010_spec.rb +18 -0
- data/spec/functional/en_B5011_spec.rb +18 -0
- data/spec/functional/en_B5013_spec.rb +18 -0
- data/spec/functional/en_B5014_spec.rb +18 -0
- data/spec/functional/en_B5016_spec.rb +18 -0
- data/spec/functional/en_D105N_spec.rb +30 -0
- data/spec/functional/en_D200_spec.rb +21 -0
- data/spec/functional/en_F031_spec.rb +25 -0
- data/spec/functional/en_G2001_spec.rb +17 -0
- data/spec/functional/en_G2514_spec.rb +21 -0
- data/spec/functional/en_G2516_spec.rb +21 -0
- data/spec/functional/en_G2602_spec.rb +18 -0
- data/spec/functional/en_G2603_spec.rb +21 -0
- data/spec/functional/en_L000_spec.rb +16 -0
- data/spec/functional/en_P213E_spec.rb +19 -0
- data/spec/functional/en_P213H_spec.rb +19 -0
- data/spec/functional/en_P213W_spec.rb +19 -0
- data/spec/functional/en_P400_spec.rb +17 -0
- data/spec/functional/en_T200_spec.rb +23 -0
- data/spec/functional/en_V000_spec.rb +18 -0
- data/spec/functional/en_Y000_spec.rb +20 -0
- data/spec/functional/experian_spec.rb +27 -0
- data/spec/spec_helper.rb +23 -0
- metadata +259 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0156' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0156','Y') ).to eq('Yes') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0156','U') ).to eq('Unknown') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0156',' ') ).to eq('Unknown') }
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('0156','9') ).to be_nil }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('0156','A') ).to be_nil }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0156','R') ).to be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0160a' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0160a','K01') ).to eq('Professional/Technical - Known') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0160a','I06') ).to eq('Retired - Inferred') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0160a','I04') ).to eq('Blue Collar - Inferred') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0160a','I02') ).to eq('Sales/Service - Inferred') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('0160a',' ') ).to eq('Unknown') }
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0160a','9') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0160a','A') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0160a','R') ).to eq('Unknown') }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0162' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0162','15') ).to eq('Less Than High School Diploma - Likely') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0162','53') ).to eq('Bachelor Degree - Extremely Likely') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0162',' ') ).to eq('Unknown') }
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
context 'invalid lookup' do
|
14
|
+
it { expect( Experian::DataDictionary.lookup('0162','9') ).to eq('Unknown') }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('0162','A') ).to eq('Unknown') }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0162','R') ).to eq('Unknown') }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0164' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0164','1') ).to eq('Unconnected & Unregistered') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0164','05') ).to eq('Conservative Democrats') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0164','10') ).to eq('Ultra Conservatives') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0164','06') ).to eq('On-the-Fence Liberals') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('0164',' ') ).to eq('Unknown') }
|
11
|
+
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
context 'invalid lookup' do
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0164','20') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0164','A') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('0164','R') ).to eq('Unknown') }
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0174' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0174','1Y') ).to eq('Confirmed Presence of Children') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0174','5N') ).to eq('Inferred No Children Present') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0174','00') ).to eq('Deceased and Child Only - primary decision maker is coded as deceased or no adult (18+) in household.') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0174',' ') ).to eq('Unknown') }
|
10
|
+
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0174','20') ).to be_nil }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0174','A') ).to be_nil }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0174','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 0711' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0711','1A') ).to eq('1,000 - 9,999 - Extremely Likely') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0711','3P') ).to eq('1,000,000 - + - Likely') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0711','3F') ).to eq('80,000 - 99,999 - Likely') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0711','2N') ).to eq('450,000 - 749,999 - Highly Likely') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('0711',' ') ).to eq('Unknown') }
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
context 'invalid lookup' do
|
15
|
+
it { expect( Experian::DataDictionary.lookup('0711','A') ).to eq('Unknown') }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0711','1') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0711','F') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0711','0') ).to eq('Unknown') }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0715' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0715','1125') ).to eq('125 - Extremely Likely') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0715','2125') ).to eq('125 - Highly Likely') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0715','1100') ).to eq('100 - Extremely Likely') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0715','3090') ).to eq('90 - Likely') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('0715','3085') ).to eq('85 - Likely') }
|
11
|
+
|
12
|
+
|
13
|
+
it { expect( Experian::DataDictionary.lookup('0715',' ') ).to eq('Unknown') }
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
context 'invalid lookup' do
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0715','3150') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('0715','1') ).to eq('Unknown') }
|
20
|
+
it { expect( Experian::DataDictionary.lookup('0715','F') ).to eq('Unknown') }
|
21
|
+
it { expect( Experian::DataDictionary.lookup('0715','0') ).to eq('Unknown') }
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0716' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0716','1A') ).to eq('1 - 199 - Extremely Likely') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0716','2B') ).to eq('200 - 299 - Highly Likely') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0716','1F') ).to eq('600 - 699 - Extremely Likely') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0716','3N') ).to eq('2000+ - Likely') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('0716','3U') ).to eq('Unknown') }
|
11
|
+
|
12
|
+
|
13
|
+
it { expect( Experian::DataDictionary.lookup('0716',' ') ).to eq('Unknown') }
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
context 'invalid lookup' do
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0716','3150') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('0716','1') ).to eq('Unknown') }
|
20
|
+
it { expect( Experian::DataDictionary.lookup('0716','F') ).to eq('Unknown') }
|
21
|
+
it { expect( Experian::DataDictionary.lookup('0716','0') ).to eq('Unknown') }
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0717' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0717','1A') ).to eq('1,000 - 9,999 - Extremely Likely') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0717','3P') ).to eq('1,000,000 - + - Likely') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0717','3F') ).to eq('80,000 - 99,999 - Likely') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0717','2N') ).to eq('450,000 - 749,999 - Highly Likely') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('0717',' ') ).to eq('Unknown') }
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
context 'invalid lookup' do
|
15
|
+
it { expect( Experian::DataDictionary.lookup('0717','A') ).to eq('Unknown') }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0717','1') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0717','F') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0717','0') ).to eq('Unknown') }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 310m' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('310m','A01') ).to eq('Americas Wealthiest') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('310m','A02') ).to eq('Dream Weavers') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('310m','A03') ).to eq('White-collar Suburbia') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('310m','A04') ).to eq('Upscale Suburbanites') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('310m','A05') ).to eq('Enterprising Couples') }
|
11
|
+
it { expect( Experian::DataDictionary.lookup('310m','A06') ).to eq('Small-town Success') }
|
12
|
+
it { expect( Experian::DataDictionary.lookup('310m','A07') ).to eq('New Suburbia Families') }
|
13
|
+
it { expect( Experian::DataDictionary.lookup('310m','B01') ).to eq('Status-conscious Consumers') }
|
14
|
+
it { expect( Experian::DataDictionary.lookup('310m','B02') ).to eq('Affluent Urban Professionals') }
|
15
|
+
it { expect( Experian::DataDictionary.lookup('310m','B03') ).to eq('Urban Commuter Families') }
|
16
|
+
it { expect( Experian::DataDictionary.lookup('310m','B04') ).to eq('Solid Suburban Life') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('310m','B05') ).to eq('Second-generation Success') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('310m','B06') ).to eq('Successful Suburbia') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('310m','C01') ).to eq('Second City Homebodies') }
|
20
|
+
it { expect( Experian::DataDictionary.lookup('310m','C02') ).to eq('Prime Middle America') }
|
21
|
+
it { expect( Experian::DataDictionary.lookup('310m','C03') ).to eq('Suburban Optimists') }
|
22
|
+
it { expect( Experian::DataDictionary.lookup('310m','C04') ).to eq('Family Convenience') }
|
23
|
+
it { expect( Experian::DataDictionary.lookup('310m','C05') ).to eq('Mid-market Enterprise') }
|
24
|
+
it { expect( Experian::DataDictionary.lookup('310m','D01') ).to eq('Nuevo Hispanic Families') }
|
25
|
+
it { expect( Experian::DataDictionary.lookup('310m','D02') ).to eq('Working Rural Communities') }
|
26
|
+
it { expect( Experian::DataDictionary.lookup('310m','D03') ).to eq('Lower-income Essentials') }
|
27
|
+
it { expect( Experian::DataDictionary.lookup('310m','D04') ).to eq('Small-city Endeavors') }
|
28
|
+
it { expect( Experian::DataDictionary.lookup('310m','E01') ).to eq('Ethnic Urban Mix') }
|
29
|
+
it { expect( Experian::DataDictionary.lookup('310m','E02') ).to eq('Urban Blues') }
|
30
|
+
it { expect( Experian::DataDictionary.lookup('310m','E03') ).to eq('Professional Urbanites') }
|
31
|
+
it { expect( Experian::DataDictionary.lookup('310m','E04') ).to eq('Suburban Advantage') }
|
32
|
+
it { expect( Experian::DataDictionary.lookup('310m','E05') ).to eq('American Great Outdoors') }
|
33
|
+
it { expect( Experian::DataDictionary.lookup('310m','E06') ).to eq('Mature America') }
|
34
|
+
it { expect( Experian::DataDictionary.lookup('310m','F01') ).to eq('Steadfast Conservative') }
|
35
|
+
it { expect( Experian::DataDictionary.lookup('310m','F02') ).to eq('Moderate Conventionalists') }
|
36
|
+
it { expect( Experian::DataDictionary.lookup('310m','F03') ).to eq('Southern Blues') }
|
37
|
+
it { expect( Experian::DataDictionary.lookup('310m','F04') ).to eq('Urban Grit') }
|
38
|
+
it { expect( Experian::DataDictionary.lookup('310m','F05') ).to eq('Grass-roots Living') }
|
39
|
+
it { expect( Experian::DataDictionary.lookup('310m','G01') ).to eq('Hardy Rural Families') }
|
40
|
+
it { expect( Experian::DataDictionary.lookup('310m','G02') ).to eq('Rural Southern Living') }
|
41
|
+
it { expect( Experian::DataDictionary.lookup('310m','G03') ).to eq('Coal and Crops') }
|
42
|
+
it { expect( Experian::DataDictionary.lookup('310m','G04') ).to eq('Native Americana') }
|
43
|
+
it { expect( Experian::DataDictionary.lookup('310m','H01') ).to eq('Young Cosmopolitans') }
|
44
|
+
it { expect( Experian::DataDictionary.lookup('310m','H02') ).to eq('Minority Metro Communities') }
|
45
|
+
it { expect( Experian::DataDictionary.lookup('310m','H03') ).to eq('Stable Careers') }
|
46
|
+
it { expect( Experian::DataDictionary.lookup('310m','H04') ).to eq('Aspiring Hispania') }
|
47
|
+
it { expect( Experian::DataDictionary.lookup('310m','I01') ).to eq('Industrious Country Living') }
|
48
|
+
it { expect( Experian::DataDictionary.lookup('310m','I02') ).to eq('Americas Farmlands') }
|
49
|
+
it { expect( Experian::DataDictionary.lookup('310m','I03') ).to eq('Comfy Country Living') }
|
50
|
+
it { expect( Experian::DataDictionary.lookup('310m','I04') ).to eq('Small-town Connections') }
|
51
|
+
it { expect( Experian::DataDictionary.lookup('310m','I05') ).to eq('Hinterland Families') }
|
52
|
+
it { expect( Experian::DataDictionary.lookup('310m','J01') ).to eq('Rugged Rural Style') }
|
53
|
+
it { expect( Experian::DataDictionary.lookup('310m','J02') ).to eq('Latino Nuevo') }
|
54
|
+
it { expect( Experian::DataDictionary.lookup('310m','J03') ).to eq('Struggling City Centers') }
|
55
|
+
it { expect( Experian::DataDictionary.lookup('310m','J04') ).to eq('College Town Communities') }
|
56
|
+
it { expect( Experian::DataDictionary.lookup('310m','J05') ).to eq('Metro Beginnings') }
|
57
|
+
it { expect( Experian::DataDictionary.lookup('310m','K01') ).to eq('Unattached Multi-cultures') }
|
58
|
+
it { expect( Experian::DataDictionary.lookup('310m','K02') ).to eq('Academic Influences') }
|
59
|
+
it { expect( Experian::DataDictionary.lookup('310m','K03') ).to eq('African-American Neighborhoods') }
|
60
|
+
it { expect( Experian::DataDictionary.lookup('310m','K04') ).to eq('Urban Diversity') }
|
61
|
+
it { expect( Experian::DataDictionary.lookup('310m','K05') ).to eq('New Generation Activists') }
|
62
|
+
it { expect( Experian::DataDictionary.lookup('310m','K06') ).to eq('Getting By') }
|
63
|
+
it { expect( Experian::DataDictionary.lookup('310m','L01') ).to eq('Military Family Life') }
|
64
|
+
it { expect( Experian::DataDictionary.lookup('310m','L02') ).to eq('Major University Towns') }
|
65
|
+
it { expect( Experian::DataDictionary.lookup('310m','L03') ).to eq('Gray Perspectives') }
|
66
|
+
it { expect( Experian::DataDictionary.lookup('310m',' ') ).to eq('Unknown') }
|
67
|
+
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
context 'invalid lookup' do
|
72
|
+
it { expect( Experian::DataDictionary.lookup('310m','A') ).to be_nil }
|
73
|
+
it { expect( Experian::DataDictionary.lookup('310m','1') ).to be_nil }
|
74
|
+
it { expect( Experian::DataDictionary.lookup('310m','F') ).to be_nil }
|
75
|
+
it { expect( Experian::DataDictionary.lookup('310m','0') ).to be_nil }
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8502' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8502','Y1') ).to eq('Living unit has a known to contribute to charities - Extremely Likely to contribute to charities') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8502','Y3') ).to eq('Living unit has a known to contribute to charities - Very Likely to contribute to charities') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8502','Y6') ).to eq('Living unit has a known to contribute to charities - Somewhat Unlikely to contribute to charities') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8502','Y9') ).to eq('Living unit has a known to contribute to charities - Extremely Unlikely to contribute to charities') }
|
10
|
+
|
11
|
+
it { expect( Experian::DataDictionary.lookup('8502',' ') ).to eq('Unknown') }
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8502','A') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('8502','1') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('8502','F') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('8502','0') ).to eq('Unknown') }
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8503' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('8503','Y1') ).to eq('Living unit has a known pet enthusiast - Extremely Likely pet enthusiast') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8503','Y3') ).to eq('Living unit has a known pet enthusiast - Very Likely pet enthusiast') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8503','Y6') ).to eq('Living unit has a known pet enthusiast - Somewhat Unlikely pet enthusiast') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8503','Y9') ).to eq('Living unit has a known pet enthusiast - Extremely Unlikely pet enthusiast') }
|
10
|
+
|
11
|
+
it { expect( Experian::DataDictionary.lookup('8503',' ') ).to eq('Unknown') }
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8503','A') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('8503','1') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('8503','F') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('8503','0') ).to eq('Unknown') }
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8504' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
# it { expect( Experian::DataDictionary.lookup('8504','Y1') ).to eq('') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8504','U1') ).to eq('Unknown - Extremely Likely interest in cultural arts') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8504','Y3') ).to eq('Living unit has a known interest in cultural arts - Very Likely interest in cultural arts') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8504','Y6') ).to eq('Living unit has a known interest in cultural arts - Somewhat Unlikely interest in cultural arts') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('8504','Y9') ).to eq('Living unit has a known interest in cultural arts - Extremely Unlikely interest in cultural arts') }
|
11
|
+
|
12
|
+
it { expect( Experian::DataDictionary.lookup('8504',' ') ).to eq('Unknown') }
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
context 'invalid lookup' do
|
17
|
+
it { expect( Experian::DataDictionary.lookup('8504','A') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('8504','1') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('8504','F') ).to eq('Unknown') }
|
20
|
+
it { expect( Experian::DataDictionary.lookup('8504','0') ).to eq('Unknown') }
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8505' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
# it { expect( Experian::DataDictionary.lookup('8505','Y1') ).to eq('') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8505','Y7') ).to eq('Living unit has purchased through the mail - Very Unlikely purchased through the mail') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8505','Y3') ).to eq('Living unit has purchased through the mail - Very Likely purchased through the mail') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8505','Y9') ).to eq('Living unit has purchased through the mail - Extremely Unlikely purchased through the mail') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('8505','U9') ).to eq('Unknown - Extremely Unlikely purchased through the mail') }
|
11
|
+
it { expect( Experian::DataDictionary.lookup('8505',' ') ).to eq('Unknown') }
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8505','A') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('8505','1') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('8505','F') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('8505','0') ).to eq('Unknown') }
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8519' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
# it { expect( Experian::DataDictionary.lookup('8519','Y1') ).to eq('') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8519','Y7') ).to eq('Living unit has a known interest in politics - Very Unlikely interest in politics') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8519','Y3') ).to eq('Living unit has a known interest in politics - Very Likely interest in politics') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8519','Y9') ).to eq('Living unit has a known interest in politics - Extremely Unlikely interest in politics') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('8519','U9') ).to eq('Unknown - Extremely Unlikely interest in politics') }
|
11
|
+
it { expect( Experian::DataDictionary.lookup('8519',' ') ).to eq('Unknown') }
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8519','A') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('8519','1') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('8519','F') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('8519','0') ).to eq('Unknown') }
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8525' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
# it { expect( Experian::DataDictionary.lookup('8525','Y1') ).to eq('') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8525','Y7') ).to eq('Living unit has a known interest in religion - Very Unlikely interest in religion') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8525','Y3') ).to eq('Living unit has a known interest in religion - Very Likely interest in religion') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8525','Y9') ).to eq('Living unit has a known interest in religion - Extremely Unlikely interest in religion') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('8525','U9') ).to eq('Unknown - Extremely Unlikely interest in religion') }
|
11
|
+
it { expect( Experian::DataDictionary.lookup('8525',' ') ).to eq('Unknown') }
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8525','A') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('8525','1') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('8525','F') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('8525','0') ).to eq('Unknown') }
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 8526' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
# it { expect( Experian::DataDictionary.lookup('8526','Y1') ).to eq('') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('8526','Y7') ).to eq('Living unit has a known grandparent - Very Unlikely grandparent') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('8526','Y3') ).to eq('Living unit has a known grandparent - Very Likely grandparent') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('8526','Y9') ).to eq('Living unit has a known grandparent - Extremely Unlikely grandparent') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('8526','U9') ).to eq('Unknown - Extremely Unlikely grandparent') }
|
11
|
+
it { expect( Experian::DataDictionary.lookup('8526',' ') ).to eq('Unknown') }
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('8526','A') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('8526','1') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('8526','F') ).to eq('Unknown') }
|
19
|
+
it { expect( Experian::DataDictionary.lookup('8526','0') ).to eq('Unknown') }
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|