mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
11 lines
172 B
Ruby
11 lines
172 B
Ruby
|
module Sidekiq
|
||
|
class Worker
|
||
|
include Celluloid
|
||
|
|
||
|
def process(json)
|
||
|
klass = json['class'].constantize
|
||
|
klass.new.perform(*json['args'])
|
||
|
end
|
||
|
end
|
||
|
end
|