Class: Operto::MemoryTokenStore::Token
- Inherits:
-
Struct
- Object
- Struct
- Operto::MemoryTokenStore::Token
- Defined in:
- lib/operto/memory_token_store.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#refresh_expires_at ⇒ Object
Returns the value of attribute refresh_expires_at.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
7 8 9 |
# File 'lib/operto/memory_token_store.rb', line 7 def access_token @access_token end |
#expires_at ⇒ Object
Returns the value of attribute expires_at
7 8 9 |
# File 'lib/operto/memory_token_store.rb', line 7 def expires_at @expires_at end |
#refresh_expires_at ⇒ Object
Returns the value of attribute refresh_expires_at
7 8 9 |
# File 'lib/operto/memory_token_store.rb', line 7 def refresh_expires_at @refresh_expires_at end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token
7 8 9 |
# File 'lib/operto/memory_token_store.rb', line 7 def refresh_token @refresh_token end |
Instance Method Details
#expired? ⇒ Boolean
8 9 10 |
# File 'lib/operto/memory_token_store.rb', line 8 def expired? expires_at.nil? || expires_at < Time.now end |