Class: ActiveStash::FinalizedIndexConfig
- Inherits:
-
Object
- Object
- ActiveStash::FinalizedIndexConfig
- Defined in:
- lib/active_stash/finalized_index_config.rb
Instance Attribute Summary collapse
-
#indexes ⇒ Object
readonly
Returns the value of attribute indexes.
Instance Method Summary collapse
-
#initialize(indexes, callback_registration_handlers) ⇒ FinalizedIndexConfig
constructor
A new instance of FinalizedIndexConfig.
- #register_callbacks ⇒ Object
Constructor Details
#initialize(indexes, callback_registration_handlers) ⇒ FinalizedIndexConfig
Returns a new instance of FinalizedIndexConfig.
5 6 7 8 |
# File 'lib/active_stash/finalized_index_config.rb', line 5 def initialize(indexes, callback_registration_handlers) @indexes = ActiveStash::IndexLookup.new(indexes) @callback_registration_handlers = callback_registration_handlers end |
Instance Attribute Details
#indexes ⇒ Object (readonly)
Returns the value of attribute indexes.
3 4 5 |
# File 'lib/active_stash/finalized_index_config.rb', line 3 def indexes @indexes end |
Instance Method Details
#register_callbacks ⇒ Object
10 11 12 |
# File 'lib/active_stash/finalized_index_config.rb', line 10 def register_callbacks @callback_registration_handlers.each(&:call) end |