class Sqreen::Event
Master interface for point in time events (e.g. Attack
, RemoteException
)
Attributes
payload[R]
@return [Hash]
time[RW]
@return [Time]
Public Class Methods
new(payload)
click to toggle source
# File lib/sqreen/event.rb, line 17 def initialize(payload) @payload = payload @time = Time.now.utc end
Public Instance Methods
to_s()
click to toggle source
# File lib/sqreen/event.rb, line 22 def to_s "<#{self.class.name}: #{payload.to_hash}>" end