Class: AliyunSDK::OSS::Config

Inherits:
Common::Struct::Base show all
Defined in:
lib/aliyun_sdk/oss/config.rb

Overview

A place to store various configurations: credentials, api timeout, retry mechanism, etc

Instance Method Summary collapse

Methods inherited from Common::Struct::Base

#to_s

Methods included from Common::Struct::Base::AttrHelper

#attrs

Constructor Details

#initialize(opts = {}) ⇒ Config

Returns a new instance of Config.



16
17
18
19
20
21
22
# File 'lib/aliyun_sdk/oss/config.rb', line 16

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
end