Class: Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::MessageListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::MessageListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb,
lib/twilio-ruby/rest/conversations/v1/service/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.
554 555 556 557 558 559 560 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 554 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
647 648 649 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 647 def headers @headers end |
#message ⇒ Object
643 644 645 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 643 def @message end |
#message_instance ⇒ Object
562 563 564 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 562 def @instance end |
#status_code ⇒ Object
651 652 653 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 651 def status_code @status_code end |