Exception: MessageMediaSigningKeys::DisableTheCurrentEnabledSignatureKey403ResponseException

Inherits:
APIException
  • Object
show all
Defined in:
lib/message_media_signing_keys/exceptions/disable_the_current_enabled_signature_key403_response_exception.rb

Overview

Disable the current enabled signature key. 403 response class.

Instance Attribute Summary collapse

Attributes inherited from APIException

#context, #response_code

Instance Method Summary collapse

Constructor Details

#initialize(reason, context) ⇒ DisableTheCurrentEnabledSignatureKey403ResponseException

The constructor.

Parameters:

  • The (String)

    reason for raising an exception.

  • The (HttpContext)

    HttpContext of the API call.



14
15
16
17
18
# File 'lib/message_media_signing_keys/exceptions/disable_the_current_enabled_signature_key403_response_exception.rb', line 14

def initialize(reason, context)
  super(reason, context)
  hash = APIHelper.json_deserialize(@context.response.raw_body)
  unbox(hash)
end

Instance Attribute Details

#messageString

TODO: Write general description for this method

Returns:



9
10
11
# File 'lib/message_media_signing_keys/exceptions/disable_the_current_enabled_signature_key403_response_exception.rb', line 9

def message
  @message
end

Instance Method Details

#unbox(hash) ⇒ Object

Populates this object by extracting properties from a hash. response body.

Parameters:

  • The (Hash)

    deserialized response sent by the server in the



23
24
25
# File 'lib/message_media_signing_keys/exceptions/disable_the_current_enabled_signature_key403_response_exception.rb', line 23

def unbox(hash)
  @message = hash['message']
end