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.
1670 1671 1672 1673 1674 1675 1676 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1670 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
1759 1760 1761 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1759 def content @content end |
#content_instance ⇒ Object
1678 1679 1680 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1678 def content_instance @instance end |
#headers ⇒ Object
1763 1764 1765 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1763 def headers @headers end |
#status_code ⇒ Object
1767 1768 1769 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1767 def status_code @status_code end |