Class: MAuth::Client::LocalAuthenticator::SecurityTokenCacher::ExpirableSecurityToken
- Inherits:
-
Struct
- Object
- Struct
- MAuth::Client::LocalAuthenticator::SecurityTokenCacher::ExpirableSecurityToken
- Defined in:
- lib/mauth/client/security_token_cacher.rb
Constant Summary collapse
- CACHE_LIFE =
60
Instance Attribute Summary collapse
-
#create_time ⇒ Object
Returns the value of attribute create_time.
-
#security_token ⇒ Object
Returns the value of attribute security_token.
Instance Method Summary collapse
Instance Attribute Details
#create_time ⇒ Object
Returns the value of attribute create_time
6 7 8 |
# File 'lib/mauth/client/security_token_cacher.rb', line 6 def create_time @create_time end |
#security_token ⇒ Object
Returns the value of attribute security_token
6 7 8 |
# File 'lib/mauth/client/security_token_cacher.rb', line 6 def security_token @security_token end |
Instance Method Details
#expired? ⇒ Boolean
8 9 10 |
# File 'lib/mauth/client/security_token_cacher.rb', line 8 def expired? create_time + CACHE_LIFE < Time.now end |