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.
1656 1657 1658 1659 1660 1661 1662 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1656 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
1745 1746 1747 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1745 def content @content end |
#content_instance ⇒ Object
1664 1665 1666 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1664 def content_instance @instance end |
#headers ⇒ Object
1749 1750 1751 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1749 def headers @headers end |
#status_code ⇒ Object
1753 1754 1755 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1753 def status_code @status_code end |