oi-api-ruby 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oi_api/lookup_tables.rb +17 -13
- data/lib/oi_api/version.rb +1 -1
- data/spec/oi_api/lookup_tables_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c36e45af3dc1c759f8202bb2fab596df90caa1ae
|
4
|
+
data.tar.gz: 55b735339c5b9b1f4eb8f15e5fa529ddf618f82a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43249fdf390923b6709e5cde614639c0798ce7dff813ec976d53e8c3fd12ee2db519f501634ac6ddffff9b6ca5a2979f23b47b91f280b7dedc9070fe53e378cc
|
7
|
+
data.tar.gz: a535828d97a0efa736460ac269e480c3cd8569e7b9cbdaffa3d1644ff562639dc6195d474f03e954dd533c0e035eb48c41af5f9993903b327331927a76072d90
|
data/lib/oi_api/lookup_tables.rb
CHANGED
@@ -19,18 +19,18 @@ module OiApi
|
|
19
19
|
}
|
20
20
|
|
21
21
|
DATA_FIELDS = {
|
22
|
-
first_name: {
|
23
|
-
last_name: {
|
24
|
-
email: {
|
25
|
-
street_address: {
|
26
|
-
city: {
|
27
|
-
state: {
|
28
|
-
postal_code: {
|
29
|
-
country: {
|
30
|
-
home_phone: {
|
31
|
-
mobile_phone: {
|
32
|
-
gender: {
|
33
|
-
date_of_birth: {
|
22
|
+
first_name: { oi_name: 'FN', field_value: '#{FN}', description: 'First Name' },
|
23
|
+
last_name: { oi_name: 'LN', field_value: '#{LN}', description: 'Last Name' },
|
24
|
+
email: { oi_name: 'EM', field_value: '#{EM}', description: 'Email' },
|
25
|
+
street_address: { oi_name: 'AD1', field_value: '#{AD1}', description: 'Street Address' },
|
26
|
+
city: { oi_name: 'CI', field_value: '#{CI}', description: 'City' },
|
27
|
+
state: { oi_name: 'ST', field_value: '#{ST}', description: 'State' },
|
28
|
+
postal_code: { oi_name: 'PO', field_value: '#{PO}', description: 'Postal Code' },
|
29
|
+
country: { oi_name: 'CO', field_value: '#{CO}', description: 'Country' },
|
30
|
+
home_phone: { oi_name: 'HP', field_value: '#{HP}', description: 'Home Phone Number' },
|
31
|
+
mobile_phone: { oi_name: 'MP', field_value: '#{MP}', description: 'Mobile Phone Number' },
|
32
|
+
gender: { oi_name: 'G', field_value: '#{G}', description: 'Gender' },
|
33
|
+
date_of_birth: { oi_name: 'DOB', field_value: '#{DOB}', description: 'Date of Birth' }
|
34
34
|
}
|
35
35
|
|
36
36
|
def self.category_names
|
@@ -57,11 +57,15 @@ module OiApi
|
|
57
57
|
# contacts back to our endpoint
|
58
58
|
#
|
59
59
|
def self.data_fields
|
60
|
-
|
60
|
+
DATA_FIELDS.map do |data_point|
|
61
61
|
{ data_point[0] => data_point[1][:field_value] }
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
def self.data_field_oi_name(field_name)
|
66
|
+
DATA_FIELDS[field_name][:oi_name]
|
67
|
+
end
|
68
|
+
|
65
69
|
end
|
66
70
|
|
67
71
|
end
|
data/lib/oi_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oi-api-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarrod Spillers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|