Class: ActiverecordReindex::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord_reindex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_productionObject

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_classObject

Returns the value of attribute index_class.



9
10
11
# File 'lib/activerecord_reindex.rb', line 9

def index_class
  @index_class
end

#index_queueObject

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_classObject

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

Returns:

  • (Boolean)


16
17
18
# File 'lib/activerecord_reindex.rb', line 16

def async_reindex_only_in_production?
  @async_reindex_only_in_production
end