Class: Twilio::REST::Content::V1::ContentListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Content::V1::ContentListResponse
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb,
lib/twilio-ruby/rest/content/v1/content.rb
Instance Method Summary collapse
- #content ⇒ Object
- #content_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ContentListResponse
constructor
A new instance of ContentListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ContentListResponse
Returns a new instance of ContentListResponse.
1664 1665 1666 1667 1668 1669 1670 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1664 def initialize(version, payload, key) @content_instance = payload.body[key].map do |data| ContentInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#content ⇒ Object
1753 1754 1755 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1753 def content @content end |
#content_instance ⇒ Object
1672 1673 1674 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1672 def content_instance @instance end |
#headers ⇒ Object
1757 1758 1759 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1757 def headers @headers end |
#status_code ⇒ Object
1761 1762 1763 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1761 def status_code @status_code end |