Class: YuntongxunSdk::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_sidObject

The default Account ID and token to be used



7
8
9
# File 'lib/yuntongxun_sdk/configuration.rb', line 7

def 
  @account_sid
end

#app_idObject

The default App ID



10
11
12
# File 'lib/yuntongxun_sdk/configuration.rb', line 10

def app_id
  @app_id
end

#auth_tokenObject

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

#gatewayObject

The gateway to use for API requests



4
5
6
# File 'lib/yuntongxun_sdk/configuration.rb', line 4

def gateway
  @gateway
end