urban-mapping-api 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/urban-mapping-api.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.5
|
data/lib/urban-mapping-api.rb
CHANGED
@@ -24,7 +24,7 @@ module UrbanMapping
|
|
24
24
|
class Interface
|
25
25
|
ENDPOINT = 'http://api1.urbanmapping.com/neighborhoods/rest'
|
26
26
|
|
27
|
-
attr_reader :api_key, :shared_secret, :
|
27
|
+
attr_reader :api_key, :shared_secret, :options
|
28
28
|
|
29
29
|
# Create a new instance.
|
30
30
|
# Requeres an api_key. A shared key needs to be provided for
|
@@ -126,7 +126,7 @@ module UrbanMapping
|
|
126
126
|
|
127
127
|
output = JSON.parse(response.body_str)
|
128
128
|
|
129
|
-
return output if
|
129
|
+
return output if options[:raw]
|
130
130
|
|
131
131
|
output.to_openstruct
|
132
132
|
rescue StandardError => ex
|