class Mole::Event
Attributes
details[RW]
event[RW]
timestamp[RW]
Public Class Methods
new(event, details = {})
click to toggle source
# File lib/orwell/mole/event.rb, line 5 def initialize(event, details = {}) @event = event @details = details @timestamp = Time.now.utc.to_i end
Public Instance Methods
to_h()
click to toggle source
# File lib/orwell/mole/event.rb, line 11 def to_h { event: event, details: details, timestamp: timestamp } end