Sha256: 930c87e56c5724eb4e18c36a328baec431c72ab41828a3368139712a4d75ed4e
Contents?: true
Size: 882 Bytes
Versions: 72
Compression:
Stored size: 882 Bytes
Contents
# Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.io/terms.html require 'sqreen/events/remote_exception' module Sqreen module Deliveries # Simple delivery method that directly call session on event class Simple attr_accessor :session def initialize(session) self.session = session end def post_event(event) case event when Sqreen::Attack session.post_attack(event) when Sqreen::RemoteException session.post_sqreen_exception(event) else session.post_event(event) end end def drain # Since everything is posted at once nothing needs to be done here end def tick # Since everything is posted at once nothing needs to be done here end end end end
Version data entries
72 entries across 72 versions & 1 rubygems