Class: Dingtalktool::Configuration
- Inherits:
-
Object
- Object
- Dingtalktool::Configuration
- Defined in:
- lib/dingtalktool/configuration.rb
Instance Attribute Summary collapse
-
#agentid ⇒ Object
Returns the value of attribute agentid.
-
#corpid ⇒ Object
Returns the value of attribute corpid.
-
#encoding_aes_key ⇒ Object
Returns the value of attribute encoding_aes_key.
-
#oapi_host ⇒ Object
Returns the value of attribute oapi_host.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 |
# File 'lib/dingtalktool/configuration.rb', line 5 def initialize @oapi_host = "https://oapi.dingtalk.com" @corpid = "" @secret = "" @agentid = "" #必填,在创建微应用的时候会分配 @encoding_aes_key = "123456" #加解密需要用到的token,普通企业可以随机填写,例如:123456 @token = "111111111111111111111111111111111" #数据加密密钥。用于回调数据的加密,长度固定为43个字符,从a-z, A-Z, 0-9共62个字符中选取,您可以随机生成 end |
Instance Attribute Details
#agentid ⇒ Object
Returns the value of attribute agentid.
3 4 5 |
# File 'lib/dingtalktool/configuration.rb', line 3 def agentid @agentid end |
#corpid ⇒ Object
Returns the value of attribute corpid.
3 4 5 |
# File 'lib/dingtalktool/configuration.rb', line 3 def corpid @corpid end |
#encoding_aes_key ⇒ Object
Returns the value of attribute encoding_aes_key.
3 4 5 |
# File 'lib/dingtalktool/configuration.rb', line 3 def encoding_aes_key @encoding_aes_key end |
#oapi_host ⇒ Object
Returns the value of attribute oapi_host.
3 4 5 |
# File 'lib/dingtalktool/configuration.rb', line 3 def oapi_host @oapi_host end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/dingtalktool/configuration.rb', line 3 def secret @secret end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/dingtalktool/configuration.rb', line 3 def token @token end |