Class: Yt::Models::Account

Inherits:
Base
  • Object
show all
Includes:
Yt::Modules::Authentication
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 Yt::Modules::Authentication

#auth, #authentication, #authentication_url, #initialize, #refresh

Methods included from Yt::Modules::Associations

#has_many, #has_one

Instance Attribute Details

#channelYt::Models::Channel (readonly)

Returns the account’s channel.

Returns:



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

has_one :channel

#user_infoYt::Models::UserInfo (readonly)

Returns the account’s profile information.

Returns:



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

has_one :user_info

#videosYt::Collections::Videos (readonly)

Returns the videos owned by the account.

Returns:



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

has_many :videos