Class: CarrierWave::Storage::GoogleDrive

Inherits:
Abstract
  • Object
show all
Defined in:
lib/carrierwave/storage/google_drive.rb

Defined Under Namespace

Classes: File

Instance Method Summary collapse

Instance Method Details

#connectionObject



10
11
12
# File 'lib/carrierwave/storage/google_drive.rb', line 10

def connection
  @connection ||= ::GoogleDrive.( uploader., uploader.google_password )
end

#retrieve!(resource_id) ⇒ Object



20
21
22
# File 'lib/carrierwave/storage/google_drive.rb', line 20

def retrieve!(resource_id)
  CarrierWave::Storage::GoogleDrive::File.new(uploader, self, resource_id)
end

#store!(file) ⇒ Object



14
15
16
17
18
# File 'lib/carrierwave/storage/google_drive.rb', line 14

def store!(file)
  f = CarrierWave::Storage::GoogleDrive::File.new(uploader, self)
  f.store(file)
  f
end