Class: CarrierWave::Storage::Aliyun
- Inherits:
-
Abstract
- Object
- Abstract
- CarrierWave::Storage::Aliyun
show all
- Defined in:
- lib/carrierwave/storage/aliyun.rb
Defined Under Namespace
Classes: Connection, File
Instance Method Summary
collapse
Instance Method Details
#retrieve!(identifier) ⇒ Object
205
206
207
|
# File 'lib/carrierwave/storage/aliyun.rb', line 205
def retrieve!(identifier)
CarrierWave::Storage::Aliyun::File.new(uploader, self, uploader.store_path(identifier))
end
|
#store!(file) ⇒ Object
199
200
201
202
203
|
# File 'lib/carrierwave/storage/aliyun.rb', line 199
def store!(file)
f = CarrierWave::Storage::Aliyun::File.new(uploader, self, uploader.store_path)
f.store(::File.open(file.file), :content_type => file.content_type)
f
end
|