Class: AkamaiApi::CCU::BaseResponse Abstract
- Inherits:
-
Object
- Object
- AkamaiApi::CCU::BaseResponse
- Defined in:
- lib/akamai_api/ccu/base_response.rb
Overview
This class is abstract.
This class is intended as a generic superclass for all the specific responses that can be received when doing a request through the Akamai CCU interface
Direct Known Subclasses
Instance Attribute Summary collapse
-
#raw ⇒ Hash<String, *>
readonly
Raw Raw object describing the error.
Instance Method Summary collapse
-
#code ⇒ Fixnum
(also: #http_status)
Response HTTP Status Code describing the error.
-
#initialize(raw) ⇒ BaseResponse
constructor
A new instance of BaseResponse.
-
#support_id ⇒ String
Reference provided to Customer Care when needed.
Constructor Details
#initialize(raw) ⇒ BaseResponse
Returns a new instance of BaseResponse.
11 12 13 |
# File 'lib/akamai_api/ccu/base_response.rb', line 11 def initialize raw @raw = raw end |
Instance Attribute Details
#raw ⇒ Hash<String, *> (readonly)
Returns raw Raw object describing the error.
8 9 10 |
# File 'lib/akamai_api/ccu/base_response.rb', line 8 def raw @raw end |
Instance Method Details
#code ⇒ Fixnum Also known as: http_status
Returns Response HTTP Status Code describing the error.
21 22 23 |
# File 'lib/akamai_api/ccu/base_response.rb', line 21 def code raw['httpStatus'] end |
#support_id ⇒ String
Returns Reference provided to Customer Care when needed.
16 17 18 |
# File 'lib/akamai_api/ccu/base_response.rb', line 16 def support_id raw['supportId'] end |