Class: Yt::Models::ContentOwner

Inherits:
Account show all
Defined in:
lib/yt/models/content_owner.rb

Overview

Provides methods to interact with YouTube CMS accounts.

Instance Attribute Summary collapse

Attributes inherited from Account

#channel, #owner_name, #user_info, #videos

Instance Method Summary collapse

Methods included from Associations::HasReports

#has_report

Methods included from Associations::HasOne

#has_one

Methods included from Associations::HasMany

#has_many

Methods included from Associations::HasAuthentication

#has_authentication

Constructor Details

#initialize(options = {}) ⇒ ContentOwner

Returns a new instance of ContentOwner.



14
15
16
17
# File 'lib/yt/models/content_owner.rb', line 14

def initialize(options = {})
  super options
  @owner_name = options[:owner_name]
end

Instance Attribute Details

#partnered_channelsYt::Collection::PartneredChannels (readonly)

Returns the channels managed by the CMS account.

Returns:

  • (Yt::Collection::PartneredChannels)

    the channels managed by the CMS account.



12
# File 'lib/yt/models/content_owner.rb', line 12

has_many :partnered_channels