Exception: MessageMediaWebhooks::CreateWebhook400ResponseException
- Inherits:
-
APIException
- Object
- StandardError
- APIException
- MessageMediaWebhooks::CreateWebhook400ResponseException
- Defined in:
- lib/message_media_webhooks/exceptions/create_webhook_400_response_exception.rb
Overview
Create 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) ⇒ CreateWebhook400ResponseException
constructor
The constructor.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, context) ⇒ CreateWebhook400ResponseException
The constructor.
12 13 14 15 16 |
# File 'lib/message_media_webhooks/exceptions/create_webhook_400_response_exception.rb', line 12 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
7 8 9 |
# File 'lib/message_media_webhooks/exceptions/create_webhook_400_response_exception.rb', line 7 def end |
Instance Method Details
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash. response body.
21 22 23 |
# File 'lib/message_media_webhooks/exceptions/create_webhook_400_response_exception.rb', line 21 def unbox(hash) = hash['message'] end |