Class: PerfectQueue::Runner
- Inherits:
-
Object
- Object
- PerfectQueue::Runner
- Defined in:
- lib/perfectqueue/runner.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(task) ⇒ Runner
constructor
A new instance of Runner.
-
#kill(reason) ⇒ Object
def run end.
- #queue ⇒ Object
Constructor Details
#initialize(task) ⇒ Runner
21 22 23 |
# File 'lib/perfectqueue/runner.rb', line 21 def initialize(task) @task = task end |
Instance Attribute Details
#task ⇒ Object
Returns the value of attribute task.
25 26 27 |
# File 'lib/perfectqueue/runner.rb', line 25 def task @task end |
Instance Method Details
#kill(reason) ⇒ Object
def run end
34 35 36 |
# File 'lib/perfectqueue/runner.rb', line 34 def kill(reason) # do nothing end |
#queue ⇒ Object
27 28 29 |
# File 'lib/perfectqueue/runner.rb', line 27 def queue Queue.new(task.client) end |