Class: Twilio::REST::Conversations::V1::ConversationContext::MessageListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::ConversationContext::MessageListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/conversation/message.rb,
lib/twilio-ruby/rest/conversations/v1/conversation/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.
538 539 540 541 542 543 544 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 538 def initialize(version, payload, key) = 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
631 632 633 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 631 def headers @headers end |
#message ⇒ Object
627 628 629 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 627 def end |
#message_instance ⇒ Object
546 547 548 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 546 def @instance end |
#status_code ⇒ Object
635 636 637 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 635 def status_code @status_code end |