Class: GoogleAPI::Base

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

Direct Known Subclasses

Calendar, Group

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Base::Authorization

#authorize!

Constructor Details

#initialize(auth: true) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/google_api/base.rb', line 7

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

Class Method Details

.root_pathObject



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

def self.root_path
  defined?(Rails) ? Rails.root : './'
end