Exception: RestfulResource::HttpClient::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- RestfulResource::HttpClient::HttpError
- Defined in:
- lib/restful_resource/http_client.rb
Direct Known Subclasses
Conflict, OtherHttpError, ResourceNotFound, RetryableError, UnprocessableEntity
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(request, response = nil) ⇒ HttpError
Returns a new instance of HttpError.
9 10 11 12 |
# File 'lib/restful_resource/http_client.rb', line 9 def initialize(request, response = nil) @request = request @response = assign_response(response) end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
7 8 9 |
# File 'lib/restful_resource/http_client.rb', line 7 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/restful_resource/http_client.rb', line 7 def response @response end |