Class: GraphQL::FragmentCache::MemoryStore::Entry
- Inherits:
-
Struct
- Object
- Struct
- GraphQL::FragmentCache::MemoryStore::Entry
- Defined in:
- lib/graphql/fragment_cache/memory_store.rb
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#expires_at ⇒ Object
Returns the value of attribute expires_at
11 12 13 |
# File 'lib/graphql/fragment_cache/memory_store.rb', line 11 def expires_at @expires_at end |
#value ⇒ Object
Returns the value of attribute value
11 12 13 |
# File 'lib/graphql/fragment_cache/memory_store.rb', line 11 def value @value end |
Instance Method Details
#expired? ⇒ Boolean
12 13 14 |
# File 'lib/graphql/fragment_cache/memory_store.rb', line 12 def expired? expires_at && expires_at < Time.now end |