Exception: Pocus::UnexpectedHttpResponse
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Pocus::UnexpectedHttpResponse
- Defined in:
- lib/pocus/session.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ UnexpectedHttpResponse
constructor
A new instance of UnexpectedHttpResponse.
Constructor Details
#initialize(response) ⇒ UnexpectedHttpResponse
Returns a new instance of UnexpectedHttpResponse.
11 12 13 14 |
# File 'lib/pocus/session.rb', line 11 def initialize(response) @response = response super "Unexpected response [#{response.code}] #{response.body}" end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
10 11 12 |
# File 'lib/pocus/session.rb', line 10 def response @response end |