class Tracebin::Event
Attributes
event[R]
Public Class Methods
new(event)
click to toggle source
# File lib/tracebin/events.rb, line 9 def initialize(event) @event = event end
Public Instance Methods
data_hash()
click to toggle source
# File lib/tracebin/events.rb, line 21 def data_hash { event_type: type, start: time_to_string(event[1]), stop: time_to_string(event[2]), duration: milliseconds_between(event[2], event[1]), data: select_data || event.last } end
recorder_type()
click to toggle source
# File lib/tracebin/events.rb, line 13 def recorder_type event[0] end
valid?()
click to toggle source
# File lib/tracebin/events.rb, line 17 def valid? true end