Class: ActiveSet::BaseProcessor
- Inherits:
-
Object
- Object
- ActiveSet::BaseProcessor
show all
- Defined in:
- lib/active_set/processors/base_processor.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(set, instructions) ⇒ BaseProcessor
Returns a new instance of BaseProcessor.
13
14
15
16
|
# File 'lib/active_set/processors/base_processor.rb', line 13
def initialize(set, instructions)
@set = set
@instructions = Instructions.new(instructions)
end
|
Class Method Details
.queue_adapter(adapter) ⇒ Object
8
9
10
11
|
# File 'lib/active_set/processors/base_processor.rb', line 8
def self.queue_adapter(adapter)
@adapters ||= []
@adapters |= [adapter]
end
|
Instance Method Details
#adapters ⇒ Object
18
19
20
|
# File 'lib/active_set/processors/base_processor.rb', line 18
def adapters
self.class.instance_variable_get(:@adapters)
end
|