Method: Aliyun::OSS::Config#initialize
- Defined in:
- lib/aliyun/oss/config.rb
#initialize(opts = {}) ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 22 23 24 25 |
# File 'lib/aliyun/oss/config.rb', line 17 def initialize(opts = {}) super(opts) @access_key_id = @access_key_id.strip if @access_key_id @access_key_secret = @access_key_secret.strip if @access_key_secret normalize_endpoint if endpoint @upload_crc_enable = (@upload_crc_enable == 'false' || @upload_crc_enable == false) ? false : true @download_crc_enable = (@download_crc_enable == 'true' || @download_crc_enable == true) ? true : false end |