Module: DelayedCrud::BackgroundJobHandler
- Defined in:
- lib/delayed_crud/background_job_handler.rb,
lib/delayed_crud/background_job_handler/sidekiq_handler.rb
Overview
:nodoc:
Defined Under Namespace
Modules: SidekiqHandler
Class Method Summary collapse
- .delayed_create(record, attributes, options = {}) ⇒ Object
- .delayed_destroy(record, options = {}) ⇒ Object
- .delayed_update(record, attributes, options = {}) ⇒ Object
- .handler_instance ⇒ Object
Class Method Details
.delayed_create(record, attributes, options = {}) ⇒ Object
11 12 13 |
# File 'lib/delayed_crud/background_job_handler.rb', line 11 def delayed_create(record, attributes, = {}) handler_instance.delayed_create(record, attributes, ) end |
.delayed_destroy(record, options = {}) ⇒ Object
19 20 21 |
# File 'lib/delayed_crud/background_job_handler.rb', line 19 def delayed_destroy(record, = {}) handler_instance.delayed_destroy(record, ) end |
.delayed_update(record, attributes, options = {}) ⇒ Object
15 16 17 |
# File 'lib/delayed_crud/background_job_handler.rb', line 15 def delayed_update(record, attributes, = {}) handler_instance.delayed_update(record, attributes, ) end |
.handler_instance ⇒ Object
23 24 25 26 |
# File 'lib/delayed_crud/background_job_handler.rb', line 23 def handler_instance handler_class = "#{DelayedCrud.queue_adapter.to_s.capitalize}Handler" DelayedCrud::BackgroundJobHandler.const_get(handler_class) end |