melissa_data 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/CHANGELOG +2 -1
- data/lib/melissa_data/version.rb +1 -1
- data/lib/melissa_data/web_smart/client.rb +5 -0
- data/lib/melissa_data/web_smart/property_api.rb +15 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ed1d05cdd9715224286358f5b5047a2407b21cc449099b88d34416db699c92af
|
4
|
+
data.tar.gz: a3c9257371fa902c9d73e2524739a459338fd90d5251a314f6d455fb20385745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68040c66b3d698c5c55bb9413559eb3ed126828476fac9baf3894a144dd5a60c1b325bc0af5a0682c31c8b0a101a8e93e83fc3d0eafead0aee2b0fd179eda613
|
7
|
+
data.tar.gz: 99d954fdc7a37ebb84f45d0518abbeb0d554e671bd5d40069bed14d05ee168c07028a9942b511e43e3cd6862c16824a8ead142fe4e010d029936ff9cefd7eed6
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.5.1
|
data/CHANGELOG
CHANGED
data/lib/melissa_data/version.rb
CHANGED
@@ -28,6 +28,11 @@ module MelissaData
|
|
28
28
|
@response
|
29
29
|
end
|
30
30
|
|
31
|
+
def property_by_address(address:)
|
32
|
+
@response = process(@client.property_by_address(address: address), 'property')
|
33
|
+
resolve_response
|
34
|
+
end
|
35
|
+
|
31
36
|
def address(address:, city:, state:, zip:, country: "USA")
|
32
37
|
resp = viperize_hash(@client.address(address: address,
|
33
38
|
city: city,
|
@@ -39,7 +39,21 @@ module MelissaData
|
|
39
39
|
def property_by_address_key(address_key:)
|
40
40
|
raw = default_connection(BASE_URL).get '/v4/WEB/LookupProperty/', {
|
41
41
|
id: MelissaData.web_smart_id,
|
42
|
-
|
42
|
+
addressKey: address_key,
|
43
|
+
cols: 'GrpAll',
|
44
|
+
format: 'json'
|
45
|
+
}
|
46
|
+
|
47
|
+
res = JSON.parse(raw.body).deep_transform_keys(&:underscore)
|
48
|
+
res&.with_indifferent_access
|
49
|
+
end
|
50
|
+
|
51
|
+
def property_by_address(address:)
|
52
|
+
raw = default_connection(BASE_URL).get '/v4/WEB/LookupProperty/', {
|
53
|
+
id: MelissaData.web_smart_id,
|
54
|
+
ff: address,
|
55
|
+
cols: 'GrpAll',
|
56
|
+
addressKey: nil,
|
43
57
|
format: 'json'
|
44
58
|
}
|
45
59
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: melissa_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Grayson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: geokit
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.
|
195
|
+
rubygems_version: 2.7.7
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: A simple interface to Melissa Data's Web Smart Property API
|