Class: Twilio::REST::Content::V1::ContentInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, content_instance, headers, status_code) ⇒ ContentInstanceMetadata

Initializes a new ContentInstanceMetadata.

Parameters:

  • Version that contains the resource

  • content_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



1630
1631
1632
1633
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1630

def initialize(version, content_instance, headers, status_code)
    super(version, headers, status_code)
    @content_instance = content_instance
end

Instance Method Details

#contentObject



1635
1636
1637
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1635

def content
    @content_instance
end

#headersObject



1639
1640
1641
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1639

def headers
    @headers
end

#status_codeObject



1643
1644
1645
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1643

def status_code
    @status_code
end

#to_sObject



1647
1648
1649
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1647

def to_s
  "<Twilio.Api.V2010.ContentInstanceMetadata status=#{@status_code}>"
end