Class: Docs::FilterSubscriber

Inherits:
Subscriber
  • Object
show all
Defined in:
lib/docs/subscribers/filter_subscriber.rb

Instance Method Summary collapse

Methods inherited from Subscriber

subscribe_to

Instance Method Details

#call_filter(event) ⇒ Object


5
6
7
# File 'lib/docs/subscribers/filter_subscriber.rb', line 5

def call_filter(event)
  log "Filter: #{event.payload[:filter].remove('Docs::').remove('Filter')} [#{event.duration.round}ms]"
end