Class: XiWechatCorp::Callback::Config::Credentials
- Inherits:
-
Object
- Object
- XiWechatCorp::Callback::Config::Credentials
- Defined in:
- lib/xi_wechat_corp/callback/config.rb
Instance Method Summary collapse
- #aes_key(v = nil) ⇒ Object
- #configured? ⇒ Boolean
- #corp_id(v = nil) ⇒ Object
- #token(v = nil) ⇒ Object
Instance Method Details
#aes_key(v = nil) ⇒ Object
18 19 20 |
# File 'lib/xi_wechat_corp/callback/config.rb', line 18 def aes_key(v = nil) v.nil? ? @aes_key : (@aes_key = v) end |
#configured? ⇒ Boolean
22 23 24 |
# File 'lib/xi_wechat_corp/callback/config.rb', line 22 def configured? @corp_id && @token && @aes_key end |
#corp_id(v = nil) ⇒ Object
12 13 14 |
# File 'lib/xi_wechat_corp/callback/config.rb', line 12 def corp_id(v = nil) v.nil? ? @corp_id : (@corp_id = v) end |
#token(v = nil) ⇒ Object
15 16 17 |
# File 'lib/xi_wechat_corp/callback/config.rb', line 15 def token(v = nil) v.nil? ? @token : (@token = v) end |