Class: CustomerProfilingWorker

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

Overview

Sidekiq worker: customer profiling.

Instance Method Summary collapse

Instance Method Details

#perform(customer_ids = []) ⇒ Object

Runs the job.

Parameters:

  • customer_ids (Array) (defaults to: [])

    the customer ids

Returns:

  • (Object)

    the result



11
12
13
14
# File 'app/workers/customer_profiling_worker.rb', line 11

def perform(customer_ids = [])
  customer_ids = [customer_ids].flatten.compact
  Customer::UpdateProfileStats.new.process(customer_ids: customer_ids)
end