Exception: Freddy::ErrorResponse
- Inherits:
-
StandardError
- Object
- StandardError
- Freddy::ErrorResponse
- Defined in:
- lib/freddy/error_response.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_ERROR_MESSAGE =
'Use #response to get the error response'
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(response) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
7 8 9 10 |
# File 'lib/freddy/error_response.rb', line 7 def initialize(response) @response = response super((response) || DEFAULT_ERROR_MESSAGE) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/freddy/error_response.rb', line 5 def response @response end |