Class: Cloudq::Worker
- Inherits:
-
Object
- Object
- Cloudq::Worker
- Defined in:
- lib/cloudq/worker.rb
Instance Attribute Summary collapse
-
#queues ⇒ Object
Returns the value of attribute queues.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Worker
constructor
A new instance of Worker.
- #run(&block) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Worker
Returns a new instance of Worker.
18 19 20 |
# File 'lib/cloudq/worker.rb', line 18 def initialize(*args) @queues = args end |
Instance Attribute Details
#queues ⇒ Object
Returns the value of attribute queues.
16 17 18 |
# File 'lib/cloudq/worker.rb', line 16 def queues @queues end |