dc_address_lookup 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dc_address_lookup/client.rb +2 -1
- data/lib/dc_address_lookup/location.rb +4 -0
- data/lib/dc_address_lookup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecafaf95087d3d0a00ab755e742f8f553992f3bd
|
4
|
+
data.tar.gz: 3bca8afb6744cf95620e3ff32443420acf811a86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12fdd8072208eaa7126d94e89604a4d133c65fbab4a857356e76e9041e9b51fccab0899fe057c8a70a8688ac6e2caa5ffbb8958fe788fd2828644bdb8984f003
|
7
|
+
data.tar.gz: 111901812f132a51770f86d7c15cb404d762c4abe330169a0ea53ee9775b9373f8bc84fd07ebe59d278af92e33bd60c454f8077aca1be54f16b241807370c61d
|
@@ -2,7 +2,8 @@ module DcAddressLookup
|
|
2
2
|
class Client
|
3
3
|
def lookup(query)
|
4
4
|
response = RestClient.get DcAddressLookup::ENDPOINT, { params: { str: query } }
|
5
|
-
Response.new(response).location
|
5
|
+
location = Response.new(response).location
|
6
|
+
location if location.valid?
|
6
7
|
end
|
7
8
|
end
|
8
9
|
end
|