Class: Workarea::Listrak::OrderExporter

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

Instance Method Summary collapse

Instance Method Details

#perform(order_id) ⇒ Object



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

def perform(order_id)
  order = Workarea::Order.find order_id

  order_form = Listrak::Models::OrderForm.new order

  Listrak.data.orders.import [order_form]
end