Class: AfTalk::FetchMessagesResponse
- Defined in:
- lib/aftalk/responses/fetch_messages_response.rb
Constant Summary
Constants inherited from Response
Response::JSON_CONTENT, Response::SUCCESS_STATUSES
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Attributes inherited from Response
#body, #error_message, #status
Instance Method Summary collapse
-
#initialize(response) ⇒ FetchMessagesResponse
constructor
A new instance of FetchMessagesResponse.
Constructor Details
#initialize(response) ⇒ FetchMessagesResponse
Returns a new instance of FetchMessagesResponse.
5 6 7 8 9 10 11 12 |
# File 'lib/aftalk/responses/fetch_messages_response.rb', line 5 def initialize(response) super(response) if success? @messages = body_data[:Messages].map do || AfTalk::SmsMessageInfo.new() end end end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
3 4 5 |
# File 'lib/aftalk/responses/fetch_messages_response.rb', line 3 def @messages end |