Class: Twilio::REST::Chat::V2::ServiceContext::ChannelContext::MessageListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V2::ServiceContext::ChannelContext::MessageListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service/channel/message.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/message.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ MessageListResponse
constructor
A new instance of MessageListResponse.
- #message ⇒ Object
- #message_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ MessageListResponse
Returns a new instance of MessageListResponse.
514 515 516 517 518 519 520 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 514 def initialize(version, payload, key) @message_instance = payload.body[key].map do |data| MessageInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
607 608 609 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 607 def headers @headers end |
#message ⇒ Object
603 604 605 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 603 def @message end |
#message_instance ⇒ Object
522 523 524 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 522 def @instance end |
#status_code ⇒ Object
611 612 613 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 611 def status_code @status_code end |