experian-data-dictionary 1.4.2 → 1.4.3
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/experian_data_dictionary.gemspec +1 -1
- data/lib/element_numbers/en_0161.rb +38 -0
- data/spec/functional/en_0161_spec.rb +21 -0
- data/update_gem.txt +0 -0
- metadata +6 -3
- data/small_business_dif.txt +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12f2bbcbba90efa9c906528e3fee4bdae59dac89
|
4
|
+
data.tar.gz: d63c34ff5a8d270264704d885ebe31a79b43d138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a0615a95686baa7a8a94c20c09c97a02d6e82cb55bf2c248139c13acec0cd5afafe3494dc0fd8bdd0fbd1788ae2eeb184964949449d8d800f7dc8a8c26a47bf
|
7
|
+
data.tar.gz: ec3d250b2ea01521b6f45358d3f4acb3bdaf060d554bc99472133c6f276719f59b2f8729cbfaf249669838cc79156765683f8064515a22886f5228cb91ec5870
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Experian
|
2
|
+
class DataDictionary
|
3
|
+
|
4
|
+
# Occupation Group
|
5
|
+
def self.en_0161_column_name
|
6
|
+
'Occupation Group'
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.en_0161_value_description(key); ''; end
|
10
|
+
|
11
|
+
def self.en_0161_description
|
12
|
+
'Occupation Group V2 information is compiled from self-reported surveys, derived from state licensing agencies, or calculated through the application of predicted models.'
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.en_0161(key)
|
16
|
+
type = {
|
17
|
+
'K' => 'Known',
|
18
|
+
'I' => 'Inferred'
|
19
|
+
}
|
20
|
+
values = {
|
21
|
+
'1' => 'Management/Business & Financial Operations',
|
22
|
+
'2' => 'Technical: Computers/Math & Architect/Engineering',
|
23
|
+
'3' => 'Professional: Legal/Education & Health Practitioner/Tech/Support',
|
24
|
+
'4' => 'Sales',
|
25
|
+
'5' => 'Office & Administrative Support',
|
26
|
+
'6' => 'Blue Collar',
|
27
|
+
'7' => 'Farming/Fish/Forestry',
|
28
|
+
'8' => 'Other',
|
29
|
+
'9' => 'Retired',
|
30
|
+
'0' => 'Unknown'
|
31
|
+
}
|
32
|
+
return 'Unknown' if key.size != 2 or values[key[1]].nil? or type[key[0]].nil? or key.eql?("U00")
|
33
|
+
[values[key[1]], type[key[0]]].join(' - ')
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Experian::DataDictionary 0161' do
|
4
|
+
|
5
|
+
context 'valid lookup' do
|
6
|
+
it { expect( Experian::DataDictionary.lookup('0161','K1') ).to eq('Management/Business & Financial Operations - Known') }
|
7
|
+
it { expect( Experian::DataDictionary.lookup('0161','I6') ).to eq('Blue Collar - Inferred') }
|
8
|
+
it { expect( Experian::DataDictionary.lookup('0161','I4') ).to eq('Sales - Inferred') }
|
9
|
+
it { expect( Experian::DataDictionary.lookup('0161','I2') ).to eq('Technical: Computers/Math & Architect/Engineering - Inferred') }
|
10
|
+
it { expect( Experian::DataDictionary.lookup('0161',' ') ).to eq('Unknown') }
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
context 'invalid lookup' do
|
16
|
+
it { expect( Experian::DataDictionary.lookup('0161','9') ).to eq('Unknown') }
|
17
|
+
it { expect( Experian::DataDictionary.lookup('0161','A') ).to eq('Unknown') }
|
18
|
+
it { expect( Experian::DataDictionary.lookup('0161','R') ).to eq('Unknown') }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
data/update_gem.txt
ADDED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: experian-data-dictionary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby gem/plugin to interact with the Experian.com Data Dictionary. Checkout
|
14
14
|
the project on github for more detail.
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/element_numbers/en_0155.rb
|
57
57
|
- lib/element_numbers/en_0156.rb
|
58
58
|
- lib/element_numbers/en_0160.rb
|
59
|
+
- lib/element_numbers/en_0161.rb
|
59
60
|
- lib/element_numbers/en_0162.rb
|
60
61
|
- lib/element_numbers/en_0164.rb
|
61
62
|
- lib/element_numbers/en_0174.rb
|
@@ -133,7 +134,6 @@ files:
|
|
133
134
|
- lib/element_numbers/en_Y000.rb
|
134
135
|
- lib/experian.rb
|
135
136
|
- lib/helpers.rb
|
136
|
-
- small_business_dif.txt
|
137
137
|
- spec/functional/en_0000_spec.rb
|
138
138
|
- spec/functional/en_0100_spec.rb
|
139
139
|
- spec/functional/en_0103_spec.rb
|
@@ -159,6 +159,7 @@ files:
|
|
159
159
|
- spec/functional/en_0155_spec.rb
|
160
160
|
- spec/functional/en_0156_spec.rb
|
161
161
|
- spec/functional/en_0160_spec.rb
|
162
|
+
- spec/functional/en_0161_spec.rb
|
162
163
|
- spec/functional/en_0162_spec.rb
|
163
164
|
- spec/functional/en_0164_spec.rb
|
164
165
|
- spec/functional/en_0174_spec.rb
|
@@ -226,6 +227,7 @@ files:
|
|
226
227
|
- spec/functional/en_Y000_spec.rb
|
227
228
|
- spec/functional/experian_spec.rb
|
228
229
|
- spec/spec_helper.rb
|
230
|
+
- update_gem.txt
|
229
231
|
homepage: https://github.com/blakecampbells/experian_data_dictionary
|
230
232
|
licenses: []
|
231
233
|
metadata: {}
|
@@ -275,6 +277,7 @@ test_files:
|
|
275
277
|
- spec/functional/en_0155_spec.rb
|
276
278
|
- spec/functional/en_0156_spec.rb
|
277
279
|
- spec/functional/en_0160_spec.rb
|
280
|
+
- spec/functional/en_0161_spec.rb
|
278
281
|
- spec/functional/en_0162_spec.rb
|
279
282
|
- spec/functional/en_0164_spec.rb
|
280
283
|
- spec/functional/en_0174_spec.rb
|
data/small_business_dif.txt
DELETED