Class: Yt::Models::ContentOwner
- Defined in:
- lib/yt/models/content_owner.rb
Overview
Provides methods to interact with YouTube CMS accounts.
Instance Attribute Summary collapse
-
#owner_name ⇒ String
readonly
The name of the CMS account.
-
#partnered_channels ⇒ Yt::Collection::PartneredChannels
readonly
The channels managed by the CMS account.
Attributes inherited from Account
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ContentOwner
constructor
A new instance of ContentOwner.
Methods included from Yt::Modules::Authentication
#auth, #authentication, #authentication_url, #refresh
Methods included from Yt::Modules::Associations
Constructor Details
#initialize(options = {}) ⇒ ContentOwner
Returns a new instance of ContentOwner.
17 18 19 20 |
# File 'lib/yt/models/content_owner.rb', line 17 def initialize( = {}) super @owner_name = [:owner_name] end |
Instance Attribute Details
#owner_name ⇒ String (readonly)
Returns the name of the CMS account.
15 16 17 |
# File 'lib/yt/models/content_owner.rb', line 15 def owner_name @owner_name end |
#partnered_channels ⇒ Yt::Collection::PartneredChannels (readonly)
Returns the channels managed by the CMS account.
12 |
# File 'lib/yt/models/content_owner.rb', line 12 has_many :partnered_channels |