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

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

Instance Method Summary collapse

Instance Method Details

#work(msg) ⇒ Object



26
27
28
29
30
# File 'lib/active_job/queue_adapters/sneakers_adapter.rb', line 26

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