Class: Twilio::REST::Api::V2010::AccountContext::MessageListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::MessageListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/message.rb,
lib/twilio-ruby/rest/api/v2010/account/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.
640 641 642 643 644 645 646 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 640 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
733 734 735 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 733 def headers @headers end |
#message ⇒ Object
729 730 731 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 729 def @message end |
#message_instance ⇒ Object
648 649 650 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 648 def @instance end |
#status_code ⇒ Object
737 738 739 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 737 def status_code @status_code end |