class CarrierWave::Storage::TencentCos::File
Subclass or duck-type CarrierWave::SanitizedFile responsible for storing the file to your engine.
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
Initialize as required.
# File lib/carrierwave/storage/tencent_cos.rb, line 25 def initialize(path) @path = path end
Public Instance Methods
delete()
click to toggle source
# File lib/carrierwave/storage/tencent_cos.rb, line 37 def delete TencentCosSdk.delete @path end
store(new_file)
click to toggle source
# File lib/carrierwave/storage/tencent_cos.rb, line 29 def store(new_file) TencentCosSdk.put @path, file: new_file.path end
url()
click to toggle source
# File lib/carrierwave/storage/tencent_cos.rb, line 33 def url TencentCosSdk.url @path end