Class: Cuniculus::JobQueue
- Inherits:
-
Object
- Object
- Cuniculus::JobQueue
- Extended by:
- Forwardable
- Defined in:
- lib/cuniculus/job_queue.rb
Instance Method Summary collapse
-
#initialize(base_queue, retry_queue_names) ⇒ JobQueue
constructor
A new instance of JobQueue.
- #retry_queue(retry_count) ⇒ Object
Constructor Details
#initialize(base_queue, retry_queue_names) ⇒ JobQueue
Returns a new instance of JobQueue.
10 11 12 13 |
# File 'lib/cuniculus/job_queue.rb', line 10 def initialize(base_queue, retry_queue_names) @base_queue = base_queue @retry_queue_names = retry_queue_names end |
Instance Method Details
#retry_queue(retry_count) ⇒ Object
15 16 17 |
# File 'lib/cuniculus/job_queue.rb', line 15 def retry_queue(retry_count) @retry_queue_names[retry_count] end |