Class: Twilio::REST::Content::V1
- Defined in:
- lib/twilio-ruby/rest/content/v1.rb,
lib/twilio-ruby/rest/content/v1/content.rb,
lib/twilio-ruby/rest/content/v1/legacy_content.rb,
lib/twilio-ruby/rest/content/v1/content_and_approvals.rb,
lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb
Defined Under Namespace
Classes: ContentAndApprovalsInstance, ContentAndApprovalsList, ContentAndApprovalsPage, ContentContext, ContentInstance, ContentList, ContentPage, LegacyContentInstance, LegacyContentList, LegacyContentPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #content_and_approvals ⇒ Twilio::REST::Content::V1::ContentAndApprovalsList
- #contents(sid = :unset) ⇒ Twilio::REST::Content::V1::ContentContext, Twilio::REST::Content::V1::ContentList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Content.
- #legacy_contents ⇒ Twilio::REST::Content::V1::LegacyContentList
-
#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) ⇒ V1
Initialize the V1 version of Content
21 22 23 24 25 26 27 |
# File 'lib/twilio-ruby/rest/content/v1.rb', line 21 def initialize(domain) super @version = 'v1' @contents = nil @content_and_approvals = nil @legacy_contents = nil end |
Instance Method Details
#content_and_approvals ⇒ Twilio::REST::Content::V1::ContentAndApprovalsList
45 46 47 |
# File 'lib/twilio-ruby/rest/content/v1.rb', line 45 def content_and_approvals @content_and_approvals ||= ContentAndApprovalsList.new self end |
#contents(sid = :unset) ⇒ Twilio::REST::Content::V1::ContentContext, Twilio::REST::Content::V1::ContentList
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/twilio-ruby/rest/content/v1.rb', line 33 def contents(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @contents ||= ContentList.new self else ContentContext.new(self, sid) end end |
#legacy_contents ⇒ Twilio::REST::Content::V1::LegacyContentList
50 51 52 |
# File 'lib/twilio-ruby/rest/content/v1.rb', line 50 def legacy_contents @legacy_contents ||= LegacyContentList.new self end |
#to_s ⇒ Object
Provide a user friendly representation
55 56 57 |
# File 'lib/twilio-ruby/rest/content/v1.rb', line 55 def to_s '<Twilio::REST::Content::V1>'; end |