Class: Twilio::REST::Content::V1::ContentListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb,
lib/twilio-ruby/rest/content/v1/content.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ ContentListResponse

Returns a new instance of ContentListResponse.

Parameters:

  • instance (Array<ContentInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


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

#contentObject



1745
1746
1747
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1745

def content
    @content
end

#content_instanceObject



1664
1665
1666
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1664

def content_instance
    @instance
end

#headersObject



1749
1750
1751
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1749

def headers
  @headers
end

#status_codeObject



1753
1754
1755
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1753

def status_code
  @status_code
end