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, #user_info, #videos

Instance Method Summary collapse

Methods included from Yt::Modules::Authentication

#auth, #authentication, #authentication_url, #refresh

Methods included from Yt::Modules::Associations

#has_many, #has_one

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(options = {})
  super options
  @owner_name = options[:owner_name]
end

Instance Attribute Details

#owner_nameString (readonly)

Returns the name of the CMS account.

Returns:

  • (String)

    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_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