Class: WeixinAuthorize::JsTicket::ObjectStore
- Inherits:
-
Store
- Object
- Store
- WeixinAuthorize::JsTicket::ObjectStore
show all
- Defined in:
- lib/weixin_authorize/js_ticket/object_store.rb
Instance Attribute Summary
Attributes inherited from Store
#client
Instance Method Summary
collapse
Methods inherited from Store
init_with, #initialize, #set_jsticket
Instance Method Details
#jsticket ⇒ Object
10
11
12
13
|
# File 'lib/weixin_authorize/js_ticket/object_store.rb', line 10
def jsticket
super
client.jsticket
end
|
#jsticket_expired? ⇒ Boolean
5
6
7
8
|
# File 'lib/weixin_authorize/js_ticket/object_store.rb', line 5
def jsticket_expired?
client.jsticket_expired_at <= Time.now.to_i
end
|
#refresh_jsticket ⇒ Object
15
16
17
|
# File 'lib/weixin_authorize/js_ticket/object_store.rb', line 15
def refresh_jsticket
super
end
|