Class: ActiveJob::QueueAdapters::SneakersAdapter::JobWrapper

Inherits:
Object
  • Object
show all
Includes:
Sneakers::Worker
Defined in:
activejob/lib/active_job/queue_adapters/sneakers_adapter.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#work(msg) ⇒ Object



40
41
42
43
44
# File 'activejob/lib/active_job/queue_adapters/sneakers_adapter.rb', line 40

def work(msg)
  job_data = ActiveSupport::JSON.decode(msg)
  Base.execute job_data
  ack!
end