Exception: MessageMediaWebhooks::RetrieveWebhook400ResponseException
- Inherits:
-
APIException
- Object
- StandardError
- APIException
- MessageMediaWebhooks::RetrieveWebhook400ResponseException
- Defined in:
- lib/message_media_webhooks/exceptions/retrieve_webhook_400_response_exception.rb
Overview
Retrieve Webhook 400 response class.
Instance Attribute Summary collapse
-
#message ⇒ String
TODO: Write general description for this method.
Attributes inherited from APIException
Instance Method Summary collapse
-
#initialize(reason, context) ⇒ RetrieveWebhook400ResponseException
constructor
The constructor.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, context) ⇒ RetrieveWebhook400ResponseException
The constructor.
13 14 15 16 17 |
# File 'lib/message_media_webhooks/exceptions/retrieve_webhook_400_response_exception.rb', line 13 def initialize(reason, context) super(reason, context) hash = APIHelper.json_deserialize(@context.response.raw_body) unbox(hash) end |
Instance Attribute Details
#message ⇒ String
TODO: Write general description for this method
8 9 10 |
# File 'lib/message_media_webhooks/exceptions/retrieve_webhook_400_response_exception.rb', line 8 def @message end |
Instance Method Details
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash. response body.
22 23 24 |
# File 'lib/message_media_webhooks/exceptions/retrieve_webhook_400_response_exception.rb', line 22 def unbox(hash) @message = hash['message'] end |