Class: AliyunGreen::Configuration
- Inherits:
-
Object
- Object
- AliyunGreen::Configuration
- Defined in:
- lib/aliyun_green/configuration.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
-
#access_key_secret ⇒ Object
Returns the value of attribute access_key_secret.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#enable_internal ⇒ Object
Returns the value of attribute enable_internal.
-
#region_id ⇒ Object
Returns the value of attribute region_id.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 |
# File 'lib/aliyun_green/configuration.rb', line 6 def initialize @access_key_id = "" @access_key_secret = "" @endpoint = "cn-beijing" @api_version = "2018-05-09" @enable_internal = false end |
Instance Attribute Details
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
3 4 5 |
# File 'lib/aliyun_green/configuration.rb', line 3 def access_key_id @access_key_id end |
#access_key_secret ⇒ Object
Returns the value of attribute access_key_secret.
3 4 5 |
# File 'lib/aliyun_green/configuration.rb', line 3 def access_key_secret @access_key_secret end |
#api_version ⇒ Object
Returns the value of attribute api_version.
3 4 5 |
# File 'lib/aliyun_green/configuration.rb', line 3 def api_version @api_version end |
#enable_internal ⇒ Object
Returns the value of attribute enable_internal.
3 4 5 |
# File 'lib/aliyun_green/configuration.rb', line 3 def enable_internal @enable_internal end |
#region_id ⇒ Object
Returns the value of attribute region_id.
3 4 5 |
# File 'lib/aliyun_green/configuration.rb', line 3 def region_id @region_id end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/aliyun_green/configuration.rb', line 14 def to_hash { endpoint: @endpoint, api_version: @api_version, access_key_id: @access_key_id, access_key_secret: @access_key_secret, } end |