class Backblaze::RequestError
Basic needs for error messages. @note this could be abstract, but just keeps things simple.
Public Class Methods
new(response)
click to toggle source
Creates the Error
@param [HTTParty::Response] response the json response
# File lib/backblaze/errors.rb, line 15 def initialize(response) @response = response end
Public Instance Methods
[](key)
click to toggle source
Shortcut to access the response keys @return [Object] the object stored at `key` in the response
# File lib/backblaze/errors.rb, line 51 def [](key) @response[key] end
code()
click to toggle source
message()
click to toggle source
response()
click to toggle source
The response from the server @return [HTTParty::Response] the response
# File lib/backblaze/errors.rb, line 22 def response @response end