Exception: FleetAPI::Response::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- FleetAPI::Response::ClientError
- Defined in:
- lib/fleet_api/response.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(response) ⇒ ClientError
Returns a new instance of ClientError.
25 26 27 28 29 30 31 32 33 |
# File 'lib/fleet_api/response.rb', line 25 def initialize(response) @response = response super({ :body => response.body, :headers => response.headers, :request => response.request, :status => response.status, }.inspect) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
23 24 25 |
# File 'lib/fleet_api/response.rb', line 23 def response @response end |