Class: ActiveSet::BaseProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/active_set/processors/base_processor.rb

Direct Known Subclasses

FilterProcessor, PaginateProcessor, SortProcessor

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

#adaptersObject



18
19
20
# File 'lib/active_set/processors/base_processor.rb', line 18

def adapters
  self.class.instance_variable_get(:@adapters)
end