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.
35 36 37 38 39 |
# File 'lib/async/rest/error.rb', line 35 def initialize(response) super(response.read) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
45 46 47 |
# File 'lib/async/rest/error.rb', line 45 def response @response end |
Instance Method Details
#to_s ⇒ Object
41 42 43 |
# File 'lib/async/rest/error.rb', line 41 def to_s "#{@response}: #{super}" end |