Class: Twilio::REST::Content::V2

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v2.rb,
lib/twilio-ruby/rest/content/v2/content.rb,
lib/twilio-ruby/rest/content/v2/content_and_approvals.rb

Defined Under Namespace

Classes: ContentAndApprovalsInstance, ContentAndApprovalsList, ContentAndApprovalsPage, ContentInstance, ContentList, ContentPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V2

Initialize the V2 version of Content



21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/content/v2.rb', line 21

def initialize(domain)
    super
    @version = 'v2'
    @contents = nil
    @content_and_approvals = nil
end

Instance Method Details

#content_and_approvalsTwilio::REST::Content::V2::ContentAndApprovalsList



35
36
37
# File 'lib/twilio-ruby/rest/content/v2.rb', line 35

def content_and_approvals
    @content_and_approvals ||= ContentAndApprovalsList.new self
end

#contentsTwilio::REST::Content::V2::ContentList



30
31
32
# File 'lib/twilio-ruby/rest/content/v2.rb', line 30

def contents
    @contents ||= ContentList.new self
end

#to_sObject

Provide a user friendly representation



40
41
42
# File 'lib/twilio-ruby/rest/content/v2.rb', line 40

def to_s
    '<Twilio::REST::Content::V2>';
end