edge badge
Methods
#
D
N
P
Attributes
[R] children
[RW] end
[R] name
[R] payload
[R] time
[R] transaction_id
Class Public methods
new(name, start, ending, transaction_id, payload)
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 50
def initialize(name, start, ending, transaction_id, payload)
  @name           = name
  @payload        = payload.dup
  @time           = start
  @transaction_id = transaction_id
  @end            = ending
  @children       = []
  @duration       = nil
end
Instance Public methods
<<(event)
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 64
def <<(event)
  @children << event
end
duration()
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 60
def duration
  @duration ||= 1000.0 * (self.end - time)
end
parent_of?(event)
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 68
def parent_of?(event)
  @children.include? event
end