Class: Dingtalktool::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/dingtalktool/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#agentidObject

Returns the value of attribute agentid.



3
4
5
# File 'lib/dingtalktool/configuration.rb', line 3

def agentid
  @agentid
end

#corpidObject

Returns the value of attribute corpid.



3
4
5
# File 'lib/dingtalktool/configuration.rb', line 3

def corpid
  @corpid
end

#encoding_aes_keyObject

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_hostObject

Returns the value of attribute oapi_host.



3
4
5
# File 'lib/dingtalktool/configuration.rb', line 3

def oapi_host
  @oapi_host
end

#secretObject

Returns the value of attribute secret.



3
4
5
# File 'lib/dingtalktool/configuration.rb', line 3

def secret
  @secret
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/dingtalktool/configuration.rb', line 3

def token
  @token
end