lib/pensio_api/request.rb in pensio_api-0.3.3 vs lib/pensio_api/request.rb in pensio_api-0.3.4
- old
+ new
@@ -10,9 +10,9 @@
@headers = @response.parsed_response['APIResponse']['Header']
@body = @response.parsed_response['APIResponse']['Body']
end
def response_contains?(key)
- @body && @body.has_key?(key)
+ !!@body && @body.has_key?(key)
end
end
end