Sha256: 40e008514a62e53630e79c236006dd5f42ba8f2e5cde7af14082914e48b7da9b

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

require "google/apis/drive_v3"

module MyBanner
  class DriveClient < Google::Apis::DriveV3::DriveService

    # @param authorization [DriveAuthorization]
    def initialize(authorization=nil)
      super()
      self.client_options.application_name = "MyBanner Drive Client"
      self.client_options.application_version = VERSION
      authorization ||= DriveAuthorization.new
      self.authorization = authorization.stored_credentials || authorization.user_provided_credentials
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
my_banner-1.0.0 lib/my_banner/drive_client.rb