Class: HttpEventLogger::Event::Observer

Inherits:
Object
  • Object
show all
Defined in:
lib/http_event_logger/event/observer.rb

Class Method Summary collapse

Class Method Details

.observe(event_name, event_object) ⇒ Object


6
7
8
# File 'lib/http_event_logger/event/observer.rb', line 6

def self.observe(event_name, event_object)
  HttpEventLogger.logger.send(event_name, event_object) if HttpEventLogger.logger.logs?(event_object.uri)
end