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

Instance Method Summary collapse

Methods inherited from Account

#upload_video

Methods included from Associations::HasReports

#has_report

Methods included from Associations::HasViewerPercentages

#has_viewer_percentages

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.



18
19
20
21
# File 'lib/yt/models/content_owner.rb', line 18

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

Instance Attribute Details

#claimsYt::Collection::Claims (readonly)

Returns the claims administered by the content owner.

Returns:

  • (Yt::Collection::Claims)

    the claims administered by the content owner.



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

has_many :claims

#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