Class: CarrierWave::Storage::Aliyun
- Inherits:
-
Abstract
- Object
- Abstract
- CarrierWave::Storage::Aliyun
- Defined in:
- lib/carrierwave/storage/aliyun.rb
Defined Under Namespace
Classes: Connection, File
Instance Method Summary collapse
- #retrieve!(identifier) ⇒ Object
-
#store!(file) ⇒ Object
file: CarrierWave::SanitizedFile.
Instance Method Details
#retrieve!(identifier) ⇒ Object
222 223 224 |
# File 'lib/carrierwave/storage/aliyun.rb', line 222 def retrieve!(identifier) CarrierWave::Storage::Aliyun::File.new(uploader, self, uploader.store_path(identifier)) end |
#store!(file) ⇒ Object
file: CarrierWave::SanitizedFile
216 217 218 219 220 |
# File 'lib/carrierwave/storage/aliyun.rb', line 216 def store!(file) f = CarrierWave::Storage::Aliyun::File.new(uploader, self, uploader.store_path) f.store(file, content_type: file.content_type) f end |