1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib/sidekiq/worker.rb

11 lines
172 B
Ruby
Raw Normal View History

2012-01-16 23:05:38 -05:00
module Sidekiq
class Worker
include Celluloid
def process(json)
klass = json['class'].constantize
klass.new.perform(*json['args'])
end
end
end