Exception: ResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ResponseError
- Defined in:
- lib/everbox_client/runner.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
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.
19 20 21 |
# File 'lib/everbox_client/runner.rb', line 19 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
18 19 20 |
# File 'lib/everbox_client/runner.rb', line 18 def response @response end |
Instance Method Details
#to_s ⇒ Object
23 24 25 |
# File 'lib/everbox_client/runner.rb', line 23 def to_s "code=#{response.code}|body=#{response.body}" end |