Class: AliyunGreen::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/aliyun_green/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_idObject

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_secretObject

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_versionObject

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_internalObject

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_idObject

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_hashObject



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