Sha256: 79e4e5b621eeddbba70b71236856813672ca5ba31909fe3c6d6c7f0c83359980

Contents?: true

Size: 250 Bytes

Versions: 5

Compression:

Stored size: 250 Bytes

Contents

module HttpEventLogger
  module Event

    class Observer

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

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
http_event_logger-0.1.0 ./lib/http_event_logger/event/observer.rb
http_event_logger-0.1.0.rc4 ./lib/http_event_logger/event/observer.rb
http_event_logger-0.1.0.rc3 ./lib/http_event_logger/event/observer.rb
http_event_logger-0.1.0.rc2 ./lib/http_event_logger/event/observer.rb
http_event_logger-0.1.0.rc1 ./lib/http_event_logger/event/observer.rb