Method: GoogleDrive::ResponseCodeError#initialize
- Defined in:
- lib/google_drive/response_code_error.rb
#initialize(code, body, method, url) ⇒ ResponseCodeError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ResponseCodeError.
12 13 14 15 16 |
# File 'lib/google_drive/response_code_error.rb', line 12 def initialize(code, body, method, url) @code = code @body = body super('Response code %s for %s %s: %s' % [code, method, url, CGI.unescapeHTML(body)]) end |