class DevTrainingBot::GoogleDriveService
Constants
- APPLICATION_NAME
- CLIENT_SECRETS_PATH
- CREDENTIALS_PATH
- DOC_URL
- FORMATS
- OOB_URI
- SCOPE
Attributes
service[R]
Public Class Methods
formats()
click to toggle source
# File lib/dev_training_bot/services/google_drive_service.rb, line 29 def self.formats FORMATS.keys end
mime(format)
click to toggle source
# File lib/dev_training_bot/services/google_drive_service.rb, line 33 def self.mime(format) FORMATS[format] end
new()
click to toggle source
# File lib/dev_training_bot/services/google_drive_service.rb, line 37 def initialize @service = Google::Apis::DriveV3::DriveService.new @service.client_options.application_name = APPLICATION_NAME @service.authorization = authorize end