redvine 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redvine.rb +1 -0
- data/lib/redvine/version.rb +1 -1
- metadata +1 -1
data/lib/redvine.rb
CHANGED
@@ -62,6 +62,7 @@ class Redvine
|
|
62
62
|
def get_request_data(endpoint, records=true)
|
63
63
|
response = HTTParty.get(@@baseUrl + endpoint, {headers: session_headers})
|
64
64
|
if response.parsed_response['success'] == false
|
65
|
+
response.parsed_response['error'] = true
|
65
66
|
return Hashie::Mash.new(response.parsed_response)
|
66
67
|
else
|
67
68
|
records ? Hashie::Mash.new(response.parsed_response).data.records : Hashie::Mash.new(response.parsed_response).data
|
data/lib/redvine/version.rb
CHANGED