class Dingtalk::Token::ObjectStore
Public Instance Methods
access_token()
click to toggle source
Calls superclass method
# File lib/dingtalk/token/object_store.rb, line 19 def access_token super client.access_token end
refresh_token()
click to toggle source
Calls superclass method
# File lib/dingtalk/token/object_store.rb, line 15 def refresh_token super end
token_expired?()
click to toggle source
# File lib/dingtalk/token/object_store.rb, line 10 def token_expired? # 如果当前token过期时间小于现在的时间,则重新获取一次 client.expired_at <= Time.now.to_i end
valid?()
click to toggle source
Calls superclass method
# File lib/dingtalk/token/object_store.rb, line 6 def valid? super end