Class: CarrierWave::Uploader::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/carrierwave/tencent_cos.rb

Class Method Summary collapse

Class Method Details

.optionsObject



16
17
18
# File 'lib/carrierwave/tencent_cos.rb', line 16

def self.options
  @options
end

.tencent_cos=(options) ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/carrierwave/tencent_cos.rb', line 20

def self.tencent_cos= options
  @options = options

  TencentCosSdk.configure do |conf|
    conf.secret_id    = options[:secret_id]
    conf.secret_key   = options[:secret_key]
    conf.host         = options[:host]
    conf.parent_path  = options[:parent_path]
  end
end