Class: AridCache::CacheProxy::CachedResult
- Inherits:
-
Struct
- Object
- Struct
- AridCache::CacheProxy::CachedResult
- Defined in:
- lib/arid_cache/cache_proxy.rb
Overview
AridCache::CacheProxy::CachedResult
This struct is stored in the cache and stores information about a collection of ActiveRecords.
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#ids ⇒ Object
Returns the value of attribute ids.
-
#klass ⇒ Object
Returns the value of attribute klass.
Instance Method Summary collapse
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count
12 13 14 |
# File 'lib/arid_cache/cache_proxy.rb', line 12 def count @count end |
#ids ⇒ Object
Returns the value of attribute ids
12 13 14 |
# File 'lib/arid_cache/cache_proxy.rb', line 12 def ids @ids end |
#klass ⇒ Object
Returns the value of attribute klass
12 13 14 |
# File 'lib/arid_cache/cache_proxy.rb', line 12 def klass @klass end |
Instance Method Details
#has_count? ⇒ Boolean
13 14 15 |
# File 'lib/arid_cache/cache_proxy.rb', line 13 def has_count? !count.nil? end |
#has_ids? ⇒ Boolean
17 18 19 |
# File 'lib/arid_cache/cache_proxy.rb', line 17 def has_ids? !ids.nil? end |