Class: Yt::Models::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/yt/models/account.rb

Overview

Provides methods to interact with YouTube accounts.

Direct Known Subclasses

ContentOwner

Instance Attribute Summary collapse

Method Summary

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

Instance Attribute Details

#channelYt::Models::Channel (readonly)

Returns the account’s channel.

Returns:



10
# File 'lib/yt/models/account.rb', line 10

has_one :channel

#owner_nameString? (readonly)

Returns:

  • (String)

    name of the CMS account, if the account is partnered.

  • (nil)

    if the account is not a partnered content owner.



25
26
27
# File 'lib/yt/models/account.rb', line 25

def owner_name
  @owner_name
end

#user_infoYt::Models::UserInfo (readonly)

Returns the account’s profile information.

Returns:



15
# File 'lib/yt/models/account.rb', line 15

has_one :user_info

#videosYt::Collections::Videos (readonly)

Returns the videos owned by the account.

Returns:



21
# File 'lib/yt/models/account.rb', line 21

has_many :videos