Class: K3CloudWebapiSdk::Model::ApiConfig
- Inherits:
-
Object
- Object
- K3CloudWebapiSdk::Model::ApiConfig
- Defined in:
- lib/k3cloud_webapi_sdk/model/api_config.rb
Constant Summary collapse
- @@xor_code =
Class variable for XOR code (equivalent to Python’s class variable)
''
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#app_secret ⇒ Object
Returns the value of attribute app_secret.
-
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
-
#dcid ⇒ Object
Returns the value of attribute dcid.
-
#lcid ⇒ Object
Returns the value of attribute lcid.
-
#org_num ⇒ Object
Returns the value of attribute org_num.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
-
#server_url ⇒ Object
Returns the value of attribute server_url.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ApiConfig
constructor
A new instance of ApiConfig.
Constructor Details
#initialize ⇒ ApiConfig
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 10 def initialize # Cancel default old gateway, require url input by Ann 2025-01-15 @server_url = '' @dcid = '' @user_name = '' @app_id = '' @app_secret = '' @lcid = 2052 @org_num = 0 @connect_timeout = 120 @request_timeout = 120 @proxy = '' end |
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def app_id @app_id end |
#app_secret ⇒ Object
Returns the value of attribute app_secret.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def app_secret @app_secret end |
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def connect_timeout @connect_timeout end |
#dcid ⇒ Object
Returns the value of attribute dcid.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def dcid @dcid end |
#lcid ⇒ Object
Returns the value of attribute lcid.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def lcid @lcid end |
#org_num ⇒ Object
Returns the value of attribute org_num.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def org_num @org_num end |
#proxy ⇒ Object
Returns the value of attribute proxy.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def proxy @proxy end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def request_timeout @request_timeout end |
#server_url ⇒ Object
Returns the value of attribute server_url.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def server_url @server_url end |
#user_name ⇒ Object
Returns the value of attribute user_name.
7 8 9 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 7 def user_name @user_name end |
Class Method Details
.xor_code ⇒ Object
24 25 26 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 24 def self.xor_code @@xor_code end |
.xor_code=(value) ⇒ Object
28 29 30 |
# File 'lib/k3cloud_webapi_sdk/model/api_config.rb', line 28 def self.xor_code=(value) @@xor_code = value end |