Class: Esse::AsyncIndexing::Configuration::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/esse/async_indexing/configuration/base.rb

Direct Known Subclasses

Faktory, Sidekiq

Instance Method Summary collapse

Instance Method Details

#strict?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/esse/async_indexing/configuration/base.rb', line 50

def strict?
  true
end

#worker_options(class_name) ⇒ Object



41
42
43
44
45
46
47
48
# File 'lib/esse/async_indexing/configuration/base.rb', line 41

def worker_options(class_name)
  class_name = class_name.to_s
  if strict? && !workers.key?(class_name)
    raise Esse::AsyncIndexing::NotDefinedWorkerError.new(class_name)
  end

  workers.fetch(class_name, {})
end