Method: ConvertApi::ClientError#response_json

Defined in:
lib/convert_api/errors.rb

#response_jsonObject



38
39
40
41
42
43
44
# File 'lib/convert_api/errors.rb', line 38

def response_json
  @response_json ||= begin
    JSON.parse(response[:body])
  rescue JSON::ParserError
    {}
  end
end