Class: Labor::Worker
Instance Method Summary collapse
-
#initialize(*abilities) ⇒ Worker
constructor
A new instance of Worker.
-
#work ⇒ Object
Starts the work loop.
Methods included from Helpers
Constructor Details
#initialize(*abilities) ⇒ Worker
Returns a new instance of Worker.
5 6 7 8 |
# File 'lib/labor/worker.rb', line 5 def initialize(*abilities) @worker = Gearman::Worker.new add_abilities(abilities) end |