Class: CarrierWave::Storage::Ucloud

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

Instance Method Summary collapse

Instance Method Details

#retrieve!(identifier) ⇒ Object



12
13
14
# File 'lib/carrierwave/storage/ucloud.rb', line 12

def retrieve!(identifier)
  UcloudFile.new(uploader, self, uploader.store_path(identifier))
end

#store!(file) ⇒ Object



6
7
8
9
10
# File 'lib/carrierwave/storage/ucloud.rb', line 6

def store!(file)
  f = UcloudFile.new(uploader, self, uploader.store_path)
  f.store(file, 'Content-Type' => file.content_type)
  f
end