Class: CustomerWatchWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/customer_watch_worker.rb

Overview

Sidekiq worker: customer watch.

Instance Method Summary collapse

Instance Method Details

#perform(options = {}) ⇒ Object

Parameters:

  • options (Hash) (defaults to: {})

    job options

Options Hash (options):

  • employee_id (Integer)

    restrict the watch to a single employee



9
10
11
# File 'app/workers/customer_watch_worker.rb', line 9

def perform(options = {})
  Customer::Watch.new.process(employee_id: options[:employee_id].presence)
end