Module: Yt::Associations::HasAuthentication

Included in:
Models::Base
Defined in:
lib/yt/associations/has_authentication.rb

Overview

Provides authentication methods to YouTube resources, which allows to access to content detail set-specific methods like ‘access_token`.

YouTube resources with authentication are: accounts.

Instance Method Summary collapse

Instance Method Details

#has_authenticationObject



8
9
10
11
12
13
14
15
16
# File 'lib/yt/associations/has_authentication.rb', line 8

def has_authentication
  require 'yt/collections/authentications'
  require 'yt/collections/device_flows'
  require 'yt/errors/missing_auth'
  require 'yt/errors/no_items'
  require 'yt/errors/unauthorized'

  include Associations::Authenticable
end