Class: ActiverecordReindex::Config
- Inherits:
-
Object
- Object
- ActiverecordReindex::Config
- Defined in:
- lib/activerecord_reindex.rb
Instance Attribute Summary collapse
-
#async_reindex_only_in_production ⇒ Object
Returns the value of attribute async_reindex_only_in_production.
-
#index_class ⇒ Object
Returns the value of attribute index_class.
-
#index_queue ⇒ Object
Returns the value of attribute index_queue.
-
#mass_index_class ⇒ Object
Returns the value of attribute mass_index_class.
Instance Method Summary collapse
- #async_reindex_only_in_production? ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
11 12 13 14 |
# File 'lib/activerecord_reindex.rb', line 11 def initialize @index_queue = :elastic_index @async_reindex_only_in_production = false end |
Instance Attribute Details
#async_reindex_only_in_production ⇒ Object
Returns the value of attribute async_reindex_only_in_production.
9 10 11 |
# File 'lib/activerecord_reindex.rb', line 9 def async_reindex_only_in_production @async_reindex_only_in_production end |
#index_class ⇒ Object
Returns the value of attribute index_class.
9 10 11 |
# File 'lib/activerecord_reindex.rb', line 9 def index_class @index_class end |
#index_queue ⇒ Object
Returns the value of attribute index_queue.
9 10 11 |
# File 'lib/activerecord_reindex.rb', line 9 def index_queue @index_queue end |
#mass_index_class ⇒ Object
Returns the value of attribute mass_index_class.
9 10 11 |
# File 'lib/activerecord_reindex.rb', line 9 def mass_index_class @mass_index_class end |
Instance Method Details
#async_reindex_only_in_production? ⇒ Boolean
16 17 18 |
# File 'lib/activerecord_reindex.rb', line 16 def async_reindex_only_in_production? @async_reindex_only_in_production end |