Class: Keepit::TransientStore::Value
- Inherits:
-
Struct
- Object
- Struct
- Keepit::TransientStore::Value
- Defined in:
- lib/keepit/transient_store.rb
Instance Attribute Summary collapse
-
#expired_at ⇒ Object
Returns the value of attribute expired_at.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#expired_at ⇒ Object
Returns the value of attribute expired_at
3 4 5 |
# File 'lib/keepit/transient_store.rb', line 3 def expired_at @expired_at end |
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/keepit/transient_store.rb', line 3 def value @value end |
Instance Method Details
#expired? ⇒ Boolean
4 5 6 |
# File 'lib/keepit/transient_store.rb', line 4 def expired? expired_at < Time.now.to_i end |