Class: Resterl::Caches::SimpleCache::Entry
- Inherits:
-
Struct
- Object
- Struct
- Resterl::Caches::SimpleCache::Entry
- Defined in:
- lib/resterl/caches/simple_cache.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
7 8 9 |
# File 'lib/resterl/caches/simple_cache.rb', line 7 def data @data end |
#expires_at ⇒ Object
Returns the value of attribute expires_at
7 8 9 |
# File 'lib/resterl/caches/simple_cache.rb', line 7 def expires_at @expires_at end |
Instance Method Details
#expired? ⇒ Boolean
8 9 10 |
# File 'lib/resterl/caches/simple_cache.rb', line 8 def expired? expires_at && expires_at <= Time.now end |