Class: GoogleAPI::Base

Inherits:
Object
  • Object
show all
Includes:
Authorization
Defined in:
lib/google_api/base.rb,
lib/google_api/base/authorization.rb

Direct Known Subclasses

Calendar, Group

Defined Under Namespace

Modules: Authorization

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Authorization

#authorize!

Constructor Details

#initialize(auth: true) ⇒ Base

Returns a new instance of Base.



17
18
19
# File 'lib/google_api/base.rb', line 17

def initialize(auth: true)
  authorize! if auth
end

Class Method Details

.root_pathObject



10
11
12
# File 'lib/google_api/base.rb', line 10

def self.root_path
  defined?(Rails) ? Rails.root : File.dirname(__dir__)
end