Class: Twilio::REST::Content::V2
- 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
Instance Method Summary collapse
- #content_and_approvals ⇒ Twilio::REST::Content::V2::ContentAndApprovalsList
- #contents ⇒ Twilio::REST::Content::V2::ContentList
-
#initialize(domain) ⇒ V2
constructor
Initialize the V2 version of Content.
-
#to_s ⇒ Object
Provide a user friendly representation.
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_approvals ⇒ Twilio::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 |
#contents ⇒ Twilio::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_s ⇒ Object
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 |