Module: DelayedCrud::BackgroundJobHandler::SidekiqHandler

Defined in:
lib/delayed_crud/background_job_handler/sidekiq_handler.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.delayed_create(record, attributes, options) ⇒ Object



8
9
10
11
# File 'lib/delayed_crud/background_job_handler/sidekiq_handler.rb', line 8

def self.delayed_create(record, attributes, options)
  DelayedCrud::Worker::SidekiqWorker.perform_with_delay(operation: :create, record: record,
                                                        attributes: attributes, options: options)
end

.delayed_destroy(record, options) ⇒ Object



18
19
20
# File 'lib/delayed_crud/background_job_handler/sidekiq_handler.rb', line 18

def self.delayed_destroy(record, options)
  DelayedCrud::Worker::SidekiqWorker.perform_with_delay(operation: :destroy, record: record, options: options)
end

.delayed_update(record, attributes, options) ⇒ Object



13
14
15
16
# File 'lib/delayed_crud/background_job_handler/sidekiq_handler.rb', line 13

def self.delayed_update(record, attributes, options)
  DelayedCrud::Worker::SidekiqWorker.perform_with_delay(operation: :update, record: record,
                                                        attributes: attributes, options: options)
end