Class: Workarea::Listrak::CustomerExporter

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::CallbacksWorker, Sidekiq::Worker
Defined in:
app/workers/workarea/listrak/customer_exporter.rb

Instance Method Summary collapse

Instance Method Details

#perform(user_id) ⇒ Object



13
14
15
16
17
18
19
# File 'app/workers/workarea/listrak/customer_exporter.rb', line 13

def perform(user_id)
  user = Workarea::User.find user_id

  customer_form = Listrak::Models::CustomerForm.new user

  Listrak.data.customers.import [customer_form]
end