Class: AliyunSDK::STS::Config
- Inherits:
-
Common::Struct::Base
- Object
- Common::Struct::Base
- AliyunSDK::STS::Config
- Defined in:
- lib/aliyun_sdk/sts/config.rb
Overview
A place to store various configurations: credentials, api timeout, retry mechanism, etc
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Config
constructor
A new instance of Config.
Methods inherited from Common::Struct::Base
Methods included from Common::Struct::Base::AttrHelper
Constructor Details
#initialize(opts = {}) ⇒ Config
Returns a new instance of Config.
12 13 14 15 16 17 18 |
# File 'lib/aliyun_sdk/sts/config.rb', line 12 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 @endpoint = @endpoint.strip if @endpoint end |