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


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

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