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
161
162
163
|
# File 'lib/carrierwave/storage/aliyun.rb', line 161
def retrieve!(identifier)
CarrierWave::Storage::Aliyun::File.new(uploader, self, uploader.store_path(identifier))
end
|
#store!(file) ⇒ Object
155
156
157
158
159
|
# File 'lib/carrierwave/storage/aliyun.rb', line 155
def store!(file)
f = CarrierWave::Storage::Aliyun::File.new(uploader, self, uploader.store_path)
f.store(file.read, :content_type => file.content_type)
f
end
|