Commit 75a22fe10d81aacc06afd066c653b90dfa4a4de5
1 parent
24f14ad5
Exists in
master
Add dingtalk sns config
Showing
2 changed files
with
19 additions
and
1 deletions
Show diff stats
lib/dingtalk/config.rb
... | ... | @@ -26,9 +26,17 @@ module Dingtalk |
26 | 26 | def suite_token |
27 | 27 | @suite_token ||= config.suite_token |
28 | 28 | end |
29 | + | |
30 | + def sns_app_id | |
31 | + @sns_app_id ||= config.sns_app_id | |
32 | + end | |
33 | + | |
34 | + def sns_app_secret | |
35 | + @sns_app_secret ||= config.sns_app_secret | |
36 | + end | |
29 | 37 | end |
30 | 38 | |
31 | 39 | class Config |
32 | - attr_accessor :redis, :redis_options, :suite_key, :suite_secret, :suite_aes_key, :suite_token | |
40 | + attr_accessor :redis, :redis_options, :suite_key, :suite_secret, :suite_aes_key, :suite_token, :sns_app_id, :sns_app_secret | |
33 | 41 | end |
34 | 42 | end | ... | ... |