class Vizsla::Event
Attributes
event[R]
Public Class Methods
new(event)
click to toggle source
# File lib/vizsla/subscribers.rb, line 8 def initialize(event) @event = event end
Public Instance Methods
prettify_data()
click to toggle source
# File lib/vizsla/subscribers.rb, line 20 def prettify_data { event_started: event[1], event_ended: event[2], event_duration: event[2] - event[1], event_payload: prettify_payload } end
recorder_type()
click to toggle source
# File lib/vizsla/subscribers.rb, line 12 def recorder_type event[0] end
valid?()
click to toggle source
# File lib/vizsla/subscribers.rb, line 16 def valid? true end