Exception: MessageMediaMessages::SendMessages400ResponseException
- Inherits:
-
APIException
- Object
- StandardError
- APIException
- MessageMediaMessages::SendMessages400ResponseException
- Defined in:
- lib/message_media_messages/exceptions/send_messages400_response_exception.rb
Overview
Send messages 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) ⇒ SendMessages400ResponseException
constructor
The constructor.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, context) ⇒ SendMessages400ResponseException
The constructor.
16 17 18 19 20 |
# File 'lib/message_media_messages/exceptions/send_messages400_response_exception.rb', line 16 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
11 12 13 |
# File 'lib/message_media_messages/exceptions/send_messages400_response_exception.rb', line 11 def @message end |
Instance Method Details
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash. response body.
25 26 27 |
# File 'lib/message_media_messages/exceptions/send_messages400_response_exception.rb', line 25 def unbox(hash) @message = hash['message'] end |