Exception: AndSon::RequestError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- AndSon::RequestError
- Defined in:
- lib/and-son/response.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(protocol_response) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(protocol_response) ⇒ RequestError
Returns a new instance of RequestError.
45 46 47 48 |
# File 'lib/and-son/response.rb', line 45 def initialize(protocol_response) super(protocol_response.status.) @response = protocol_response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
43 44 45 |
# File 'lib/and-son/response.rb', line 43 def response @response end |