Module: Bluth::Queue

Includes:
Familia
Defined in:
lib/bluth.rb

Overview

if this is a module the

Class Method Summary collapse

Class Method Details

.entry_queuesObject

The subset of queues that new jobs arrive in, in order of priority



109
110
111
# File 'lib/bluth.rb', line 109

def entry_queues
  Bluth.priority.collect { |qname| self.send qname }
end

.queuesObject

The complete list of queues in the order they were defined



103
104
105
106
107
# File 'lib/bluth.rb', line 103

def queues
  Bluth::Queue.class_lists.collect(&:name).collect do |qname|
    self.send qname
  end
end