Class: MingleEvents::Processors::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/mingle_events/processors/filter.rb

Instance Method Summary collapse

Instance Method Details

#match?(event) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/mingle_events/processors/filter.rb', line 10

def match?(event)
  raise "Subclass responsibility!"
end

#process_events(events) ⇒ Object



6
7
8
# File 'lib/mingle_events/processors/filter.rb', line 6

def process_events(events)
  events.select{|e| match?(e)}
end