experian-data-dictionary 1.2 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b5d55c95443c12e6522d8922302de719df11b2b
4
- data.tar.gz: 3b388b325a67d291423be4751db447347c47da49
3
+ metadata.gz: 31acf5f264b4c414f99a369ccaa468d1232270f9
4
+ data.tar.gz: 137ea1e4706346c27e2bd6bb16d55cbd4b1d4075
5
5
  SHA512:
6
- metadata.gz: c710f689d7907243ea1664633909c9ef5ac21f633b772a87bf4123e8661e84b403edf702923fa28a968c24c795e9be08b10788a3daad5b6d24377a99b4f01182
7
- data.tar.gz: 41066909b312a32c7e07c3f6945666b003e760bc36be9eca76fbc281b9de12b7bfedbdbbbd7deb4062a840d693ac0513790010d33e132166c457243781b874b1
6
+ metadata.gz: 8e814caac3c262f7d1778c8989bfba56df8a02e30c5d0f983bac9d4d133db1f7a3142e5745d65d792c89198237bee402eea591fd88f9ae319f6834f1a75a1875
7
+ data.tar.gz: 191fa5720e6c8b7f7e84c32ebdb78489c65d3e7f0f6a455de2df6f7a212348a71ef2d1964cd159b277ccab6dc0b3424b63189b59b024efefb70aee626e249bbc
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'experian-data-dictionary'
3
- PROJECT_GEM_VERSION = '1.2'
3
+ PROJECT_GEM_VERSION = '1.3'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
@@ -2,11 +2,11 @@ module Experian
2
2
  class DataDictionary
3
3
 
4
4
  # 2010 Geo Code
5
- def self.en_gE06_column_name
5
+ def self.en_geo6_column_name
6
6
  '2010 Geo Code'
7
7
  end
8
8
 
9
- def self.en_gE06_description
9
+ def self.en_geo6_description
10
10
  '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
11
  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
12
12
  superior/subordinate structure. In this system of relationships among geographic entities, each entity (except the smallest one) is subdivided into lower-order units that in turn may be
@@ -24,7 +24,7 @@ CBSA (5 positions) A statistically based geographic level consisting of county o
24
24
  Management and Budget (OMB)'
25
25
  end
26
26
 
27
- def self.en_gE06(key)
27
+ def self.en_geo6(key)
28
28
  key.empty? ? 'Unknown' : key.to_i
29
29
  end
30
30
 
@@ -0,0 +1,32 @@
1
+ module Experian
2
+ class DataDictionary
3
+
4
+ # 2010 Geo Code
5
+ def self.en_geo6_column_name
6
+ '2010 Geo Code'
7
+ end
8
+
9
+ def self.en_geo6_description
10
+ '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
+ 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
12
+ superior/subordinate structure. In this system of relationships among geographic entities, each entity (except the smallest one) is subdivided into lower-order units that in turn may be
13
+ subdivided further. For example, states are subdivided into counties, which are subdivided into both county subdivisions and census tracts.
14
+ State Code (2 position) States and equivalent areas. Besides the 50 states, the Census Bureau treats the District of Columbia, Puerto Rico, and the Island areas (the U.S. Virgin
15
+ Islands, Guam, American Samoa, and the Northern Mariana Islands) as state equivalents for statistical presentation.
16
+ County Code (3 positions) Counties and equivalent areas. These are the primary divisions of most states, Puerto Rico, and the Island Areas. They include counties in 48 states;
17
+ parishes in Louisiana; boroughs and census areas in Alaska; municipios in Puerto Rico; independent cities in Maryland, Missouri, Nevada, and Virginia; and other entities in the
18
+ Island Areas.
19
+ Census Tract Code (6 positions) These small statistical subdivisions (averaging about 4,000 persons) of counties generally have stable boundaries and, when first established, were
20
+ designed to have relatively homogeneous demographic characteristics.
21
+ Census Block Group (1 position) Block groups are a collection of census blocks within a census tract, sharing the same first digit of their four-digit identifying numbers.
22
+ Census Block ID (3 positions) Block ID within a block group
23
+ CBSA (5 positions) A statistically based geographic level consisting of county or counties associated with at least one area of at least 10,000 population. Source: US Office of
24
+ Management and Budget (OMB)'
25
+ end
26
+
27
+ def self.en_geo6(key)
28
+ key.empty? ? 'Unknown' : key.to_i
29
+ end
30
+
31
+ end
32
+ end
data/lib/experian.rb CHANGED
@@ -6,15 +6,18 @@ module Experian
6
6
  class DataDictionary
7
7
 
8
8
  def self.lookup(column, key)
9
- self.send("en_#{column.to_s.downcase}", key.to_s.strip)
9
+ column = column.to_s.downcase.gsub(/\s+/, '')
10
+ self.send("en_#{column}", key.to_s.strip)
10
11
  end
11
12
 
12
13
  def self.column_name(column)
13
- self.send("en_#{column.to_s.downcase}_column_name")
14
+ column = column.to_s.downcase.gsub(/\s+/, '')
15
+ self.send("en_#{column}_column_name")
14
16
  end
15
17
 
16
18
  def self.description(column)
17
- self.send("en_#{column.to_s.downcase}_description")
19
+ column = column.to_s.downcase.gsub(/\s+/, '')
20
+ self.send("en_#{column}_description")
18
21
  end
19
22
 
20
23
  def self.method_missing(method, *args, &block)
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.2'
4
+ version: '1.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-06-19 00:00:00.000000000 Z
11
+ date: 2015-06-20 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.
@@ -22,7 +22,6 @@ files:
22
22
  - ".pryrc"
23
23
  - ".rspec"
24
24
  - ".ruby-gemset"
25
- - ".ruby-version"
26
25
  - Gemfile
27
26
  - Gemfile.lock
28
27
  - README.rdoc
@@ -94,6 +93,7 @@ files:
94
93
  - lib/element_numbers/en_G2602.rb
95
94
  - lib/element_numbers/en_G2603.rb
96
95
  - lib/element_numbers/en_GE06.rb
96
+ - lib/element_numbers/en_GEO6.rb
97
97
  - lib/element_numbers/en_L000.rb
98
98
  - lib/element_numbers/en_P213E.rb
99
99
  - lib/element_numbers/en_P213H.rb
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.1.2