Exception: Imgur::Response::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Imgur::Response::Error
- Defined in:
- lib/imgur/response.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/imgur/response.rb', line 4 def initialize(response) @response = response super({status: response.status, headers: response.headers, body: response.body}.inspect) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/imgur/response.rb', line 3 def response @response end |