Exception: SimpleHelper::ResponseError Abstract
- Defined in:
- lib/simple_helper/exceptions.rb
Overview
This class is abstract.
Exceptions which inherit from ResponseError contain the Net::HTTP
response object accessible via the #response method.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Net::HTTPResponse
readonly
Returns the response of the last request Net::HTTPOK.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
Instantiate an instance of ResponseError with a Net::HTTPResponse object.
Constructor Details
#initialize(response) ⇒ ResponseError
Instantiate an instance of ResponseError with a Net::HTTPResponse object
20 21 22 23 |
# File 'lib/simple_helper/exceptions.rb', line 20 def initialize(response) @response = response super(response) end |
Instance Attribute Details
#response ⇒ Net::HTTPResponse (readonly)
Returns the response of the last request Net::HTTPOK
16 17 18 |
# File 'lib/simple_helper/exceptions.rb', line 16 def response @response end |