Class: Yt::Models::Account

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

Overview

Provides methods to access a YouTube account.

Direct Known Subclasses

ContentOwner

Instance Method Summary collapse

Methods included from Associations

#has_many

Constructor Details

#initialize(options = {}) ⇒ Account

Returns a new instance of Account.



11
12
13
14
15
16
17
18
# File 'lib/yt/models/account.rb', line 11

def initialize(options = {})
  @access_token = options[:access_token]
  @refresh_token = options[:refresh_token]
  @expires_at = options[:expires_at]
  @authorization_code = options[:authorization_code]
  @redirect_uri = options[:redirect_uri]
  @scopes = options[:scopes]
end

Instance Method Details

#authObject



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

def auth
  self
end