Class: AridCache::Store::Blueprint
- Inherits:
-
Struct
- Object
- Struct
- AridCache::Store::Blueprint
- Defined in:
- lib/arid_cache/store.rb
Overview
AridCache::Store::Blueprint
Stores options and blocks that are used to generate results for finds and counts.
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#proc(object = nil) ⇒ Object
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(klass, key, opts = {}, proc = nil) ⇒ Blueprint
constructor
A new instance of Blueprint.
Constructor Details
#initialize(klass, key, opts = {}, proc = nil) ⇒ Blueprint
Returns a new instance of Blueprint.
10 11 12 13 14 15 |
# File 'lib/arid_cache/store.rb', line 10 def initialize(klass, key, opts={}, proc=nil) self.key = key self.klass = klass self.proc = proc self.opts = opts end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
8 9 10 |
# File 'lib/arid_cache/store.rb', line 8 def key @key end |
#klass ⇒ Object
Returns the value of attribute klass
8 9 10 |
# File 'lib/arid_cache/store.rb', line 8 def klass @klass end |
#opts ⇒ Object
Returns the value of attribute opts
8 9 10 |
# File 'lib/arid_cache/store.rb', line 8 def opts @opts end |
#proc(object = nil) ⇒ Object
Returns the value of attribute proc
8 9 10 |
# File 'lib/arid_cache/store.rb', line 8 def proc @proc end |