Class: CarrierWave::Storage::GoogleDrive
- Inherits:
-
Abstract
- Object
- Abstract
- CarrierWave::Storage::GoogleDrive
- Defined in:
- lib/carrierwave/storage/google_drive.rb
Defined Under Namespace
Classes: File
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
10 11 12 |
# File 'lib/carrierwave/storage/google_drive.rb', line 10 def connection @connection ||= ::GoogleDrive.login( uploader.google_login, 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 |