Exception: Unfuddle::InvalidResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Unfuddle::InvalidResponseError
- Includes:
- Error
- Defined in:
- lib/unfuddle/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ InvalidResponseError
constructor
A new instance of InvalidResponseError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ InvalidResponseError
Returns a new instance of InvalidResponseError.
22 23 24 |
# File 'lib/unfuddle/error.rb', line 22 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
26 27 28 |
# File 'lib/unfuddle/error.rb', line 26 def response @response end |
Instance Method Details
#message ⇒ Object
28 29 30 |
# File 'lib/unfuddle/error.rb', line 28 def response.body end |