Class: Cachext::Multi::FindByIds
- Inherits:
-
Object
- Object
- Cachext::Multi::FindByIds
- Defined in:
- lib/cachext/multi.rb
Instance Attribute Summary collapse
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#multi ⇒ Object
readonly
Returns the value of attribute multi.
Instance Method Summary collapse
-
#initialize(multi, ids, lookup) ⇒ FindByIds
constructor
A new instance of FindByIds.
- #records ⇒ Object
Constructor Details
#initialize(multi, ids, lookup) ⇒ FindByIds
Returns a new instance of FindByIds.
49 50 51 52 53 |
# File 'lib/cachext/multi.rb', line 49 def initialize multi, ids, lookup @multi = multi @ids = ids @lookup = lookup end |
Instance Attribute Details
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
44 45 46 |
# File 'lib/cachext/multi.rb', line 44 def ids @ids end |
#multi ⇒ Object (readonly)
Returns the value of attribute multi.
44 45 46 |
# File 'lib/cachext/multi.rb', line 44 def multi @multi end |
Instance Method Details
#records ⇒ Object
55 56 57 |
# File 'lib/cachext/multi.rb', line 55 def records fresh_cached.merge(direct).reverse_merge(stale) end |