Exception: Async::REST::ResponseError
- Defined in:
- lib/async/rest/error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ ResponseError
Returns a new instance of ResponseError.
18 19 20 21 22 |
# File 'lib/async/rest/error.rb', line 18 def initialize(response) super(response.read) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
28 29 30 |
# File 'lib/async/rest/error.rb', line 28 def response @response end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/async/rest/error.rb', line 24 def to_s "#{@response}: #{super}" end |