Class: CollavreLinear::Account
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- CollavreLinear::Account
- Defined in:
- app/models/collavre_linear/account.rb
Instance Method Summary collapse
Instance Method Details
#token_expired? ⇒ Boolean
21 22 23 |
# File 'app/models/collavre_linear/account.rb', line 21 def token_expired? token_expires_at.present? && token_expires_at < Time.current end |
#token_expiring_soon?(within: 5.minutes) ⇒ Boolean
25 26 27 |
# File 'app/models/collavre_linear/account.rb', line 25 def token_expiring_soon?(within: 5.minutes) token_expires_at.present? && token_expires_at < Time.current + within end |