Class: Yt::Models::ContentOwner

Inherits:
Account
  • Object
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, #email, #family_name, #given_name, #id, #name, #owner_name, #playlists, #related_playlists, #subscribed_channels, #subscribers, #videos

Instance Method Summary collapse

Methods inherited from Account

#avatar_url, #create_playlist, #delete_playlists, #gender, #has_verified_email?, #hd, #locale, #profile_url, #upload_video

Constructor Details

#initialize(options = {}) ⇒ ContentOwner


43
44
45
46
47
# File 'lib/yt/models/content_owner.rb', line 43

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

Instance Attribute Details

#assetsYt::Collection::Assets (readonly)


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

has_many :assets

#bulk_report_jobsYt::Collections::BulkReportJobs (readonly)


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

has_many :bulk_report_jobs

#claimsYt::Collections::Claims (readonly)


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

has_many :claims

#display_nameString (readonly)


31
32
33
# File 'lib/yt/models/content_owner.rb', line 31

def display_name
  @display_name
end

#partnered_channelsYt::Collections::PartneredChannels (readonly)


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

has_many :partnered_channels

#policiesYt::Collections::Policies (readonly)


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

has_many :policies

#referencesYt::Collections::References (readonly)


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

has_many :references

#video_groupsYt::Collections::VideoGroups (readonly)


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

has_many :video_groups

Instance Method Details

#create_asset(params = {}) ⇒ Object


53
54
55
# File 'lib/yt/models/content_owner.rb', line 53

def create_asset(params = {})
  assets.insert params
end

#create_claim(params = {}) ⇒ Object


57
58
59
# File 'lib/yt/models/content_owner.rb', line 57

def create_claim(params = {})
  claims.insert params
end

#create_reference(params = {}) ⇒ Object


49
50
51
# File 'lib/yt/models/content_owner.rb', line 49

def create_reference(params = {})
  references.insert params
end