Class: YuntongxunSdk::Configuration
- Inherits:
-
Object
- Object
- YuntongxunSdk::Configuration
- Defined in:
- lib/yuntongxun_sdk/configuration.rb
Overview
Global configuration for YuntongxunSdk.
Constant Summary collapse
- DEFAULT_SERVERS =
Default server information for Yuntongxun. These can be overridden by setting config values. See YuntongxunSdk.config.
{ gateway: 'https://app.cloopen.com:8883', }.freeze
Instance Attribute Summary collapse
-
#account_sid ⇒ Object
The default Account ID and token to be used.
-
#app_id ⇒ Object
The default App ID.
-
#auth_token ⇒ Object
The default Account ID and token to be used.
-
#gateway ⇒ Object
The gateway to use for API requests.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 |
# File 'lib/yuntongxun_sdk/configuration.rb', line 18 def initialize # Default to our default values. DEFAULT_SERVERS.each_pair do |key, value| self.public_send("#{key}=", value) end end |
Instance Attribute Details
#account_sid ⇒ Object
The default Account ID and token to be used
7 8 9 |
# File 'lib/yuntongxun_sdk/configuration.rb', line 7 def account_sid @account_sid end |
#app_id ⇒ Object
The default App ID
10 11 12 |
# File 'lib/yuntongxun_sdk/configuration.rb', line 10 def app_id @app_id end |
#auth_token ⇒ Object
The default Account ID and token to be used
7 8 9 |
# File 'lib/yuntongxun_sdk/configuration.rb', line 7 def auth_token @auth_token end |
#gateway ⇒ Object
The gateway to use for API requests
4 5 6 |
# File 'lib/yuntongxun_sdk/configuration.rb', line 4 def gateway @gateway end |