lib/api-client/parser.rb in api-client-2.0.0.rc1 vs lib/api-client/parser.rb in api-client-2.0.0.rc2

- old
+ new

@@ -3,10 +3,11 @@ # ApiClient::Parser provides a method to parse the request response. module ApiClient::Parser # Parse the JSON response. # # @param [HTTP] response HTTP object for the request. + # @param [String] url The url of the requisition. # @return [Hash] the body parsed. def self.response(response, url) raise_exception(response, url) begin object = ::JSON.parse(response.body) @@ -27,6 +28,6 @@ when 502 then raise ApiClient::Exceptions::BadGateway when 503 then raise ApiClient::Exceptions::ServiceUnavailable else return end end -end +end \ No newline at end of file