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 (Version) —

    Version that contains the resource

  • [}ContentInstance] —

    content_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



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

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

Instance Method Details

#content ⇒ Object



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

def content
    @content_instance
end

#headers ⇒ Object



1653
1654
1655
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1653

def headers
    @headers
end

#status_code ⇒ Object



1657
1658
1659
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1657

def status_code
    @status_code
end

#to_s ⇒ Object



1661
1662
1663
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 1661

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