Class: Dingtalk::Token::ObjectStore
- Inherits:
-
Store
- Object
- Store
- Dingtalk::Token::ObjectStore
show all
- Defined in:
- lib/dingtalk/token/object_store.rb
Instance Attribute Summary
Attributes inherited from Store
#client
Instance Method Summary
collapse
Methods inherited from Store
#authenticate, #authenticate_headers, #http_get_access_token, init_with, #initialize, #set_access_token
Instance Method Details
#access_token ⇒ Object
19
20
21
22
|
# File 'lib/dingtalk/token/object_store.rb', line 19
def access_token
super
client.access_token
end
|
#refresh_token ⇒ Object
15
16
17
|
# File 'lib/dingtalk/token/object_store.rb', line 15
def refresh_token
super
end
|
#token_expired? ⇒ Boolean
10
11
12
13
|
# File 'lib/dingtalk/token/object_store.rb', line 10
def token_expired?
client.expired_at <= Time.now.to_i
end
|
#valid? ⇒ Boolean
6
7
8
|
# File 'lib/dingtalk/token/object_store.rb', line 6
def valid?
super
end
|