Sha256: b698542d6b7a544c00d97101dd49e83e4ff2df820c95184381e8bb221bcbdd23

Contents?: true

Size: 473 Bytes

Versions: 9

Compression:

Stored size: 473 Bytes

Contents

# Copyright (c) 2015 Sqreen. All Rights Reserved.
# Please refer to our terms for more information: https://www.sqreen.com/terms.html

# TODO: see sqreen/events

module Sqreen
  # Master interface for point in time events (e.g. Attack, RemoteException)
  class Event
    attr_reader :payload
    def initialize(payload)
      @payload = payload
    end

    def to_hash
      payload.to_hash
    end

    def to_s
      "<#{self.class.name}: #{to_hash}>"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sqreen-1.18.6-java lib/sqreen/event.rb
sqreen-1.18.6 lib/sqreen/event.rb
sqreen-1.18.5-java lib/sqreen/event.rb
sqreen-1.18.5 lib/sqreen/event.rb
sqreen-1.18.4-java lib/sqreen/event.rb
sqreen-1.18.4 lib/sqreen/event.rb
sqreen-1.18.3-java lib/sqreen/event.rb
sqreen-1.18.3 lib/sqreen/event.rb
sqreen-1.18.3.beta2 lib/sqreen/event.rb