Module: Support::Backends::ClassMethods
- Defined in:
- lib/backgrounder/support/backends.rb
Instance Attribute Summary collapse
- #backend(queue_name = nil, args = {}) ⇒ Object
-
#queue_options ⇒ Object
readonly
Returns the value of attribute queue_options.
Instance Method Summary collapse
Instance Attribute Details
#backend(queue_name = nil, args = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/backgrounder/support/backends.rb', line 12 def backend(queue_name=nil, args={}) return @backend if @backend @queue_options = args @backend = queue_name end |
#queue_options ⇒ Object (readonly)
Returns the value of attribute queue_options.
10 11 12 |
# File 'lib/backgrounder/support/backends.rb', line 10 def @queue_options end |
Instance Method Details
#enqueue_for_backend(worker, class_name, subject_id, mounted_as) ⇒ Object
18 19 20 |
# File 'lib/backgrounder/support/backends.rb', line 18 def enqueue_for_backend(worker, class_name, subject_id, mounted_as) self.send :"enqueue_#{backend}", worker, class_name, subject_id, mounted_as end |