Class: YunTongXun::Configuration
- Inherits:
-
Object
- Object
- YunTongXun::Configuration
- Defined in:
- lib/yuntongxun_api/configuration.rb
Instance Method Summary collapse
- #account_sid ⇒ Object
- #account_sid=(account_sid) ⇒ Object
- #app_id ⇒ Object
- #app_id=(app_id) ⇒ Object
- #auth_token ⇒ Object
- #auth_token=(auth_token) ⇒ Object
-
#server ⇒ Object
API请求地址分为正式(http/https)和沙箱(http/https)共四个地址 正式-http: app.cloopen.com:8883 正式-https: app.cloopen.com:8883 沙箱-http: sandboxapp.cloopen.com:8883 沙箱-https: sandboxapp.cloopen.com:8883.
- #server=(server) ⇒ Object
- #version ⇒ Object
- #version=(version) ⇒ Object
Instance Method Details
#account_sid ⇒ Object
17 18 19 |
# File 'lib/yuntongxun_api/configuration.rb', line 17 def account_sid @account_sid ||= 'your_account_sid' end |
#account_sid=(account_sid) ⇒ Object
21 22 23 |
# File 'lib/yuntongxun_api/configuration.rb', line 21 def account_sid=(account_sid) @account_sid = account_sid end |
#app_id ⇒ Object
33 34 35 |
# File 'lib/yuntongxun_api/configuration.rb', line 33 def app_id @app_id ||= 'your_app_id' end |
#app_id=(app_id) ⇒ Object
37 38 39 |
# File 'lib/yuntongxun_api/configuration.rb', line 37 def app_id=(app_id) @app_id = app_id end |
#auth_token ⇒ Object
25 26 27 |
# File 'lib/yuntongxun_api/configuration.rb', line 25 def auth_token @auth_token ||= 'your_auth_token' end |
#auth_token=(auth_token) ⇒ Object
29 30 31 |
# File 'lib/yuntongxun_api/configuration.rb', line 29 def auth_token=(auth_token) @auth_token = auth_token end |
#server ⇒ Object
API请求地址分为正式(http/https)和沙箱(http/https)共四个地址 正式-http: app.cloopen.com:8883 正式-https: app.cloopen.com:8883 沙箱-http: sandboxapp.cloopen.com:8883 沙箱-https: sandboxapp.cloopen.com:8883
9 10 11 |
# File 'lib/yuntongxun_api/configuration.rb', line 9 def server @server ||= 'https://app.cloopen.com:8883' end |
#server=(server) ⇒ Object
13 14 15 |
# File 'lib/yuntongxun_api/configuration.rb', line 13 def server=(server) @server = server end |
#version ⇒ Object
41 42 43 |
# File 'lib/yuntongxun_api/configuration.rb', line 41 def version @version ||= 'version' end |
#version=(version) ⇒ Object
45 46 47 |
# File 'lib/yuntongxun_api/configuration.rb', line 45 def version=(version) @version = version end |