Class: AkamaiApi::CCU::BaseResponse Abstract

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ BaseResponse

Returns a new instance of BaseResponse.

Parameters:

  • raw (Hash<String, *>)

    Raw object describing the error.



11
12
13
# File 'lib/akamai_api/ccu/base_response.rb', line 11

def initialize raw
  @raw = raw
end

Instance Attribute Details

#rawHash<String, *> (readonly)

Returns raw Raw object describing the error.

Returns:

  • (Hash<String, *>)

    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

#codeFixnum Also known as: http_status

Returns Response HTTP Status Code describing the error.

Returns:

  • (Fixnum)

    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_idString

Returns Reference provided to Customer Care when needed.

Returns:

  • (String)

    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