Parent

Methods

Class Index [+]

Quicksearch

ActiveSupport::Notifications::Event

Attributes

name[R]
time[R]
end[R]
transaction_id[R]
payload[R]
duration[R]

Public Class Methods

new(name, start, ending, transaction_id, payload) click to toggle source
    # File lib/active_support/notifications/instrumenter.rb, line 39
39:       def initialize(name, start, ending, transaction_id, payload)
40:         @name           = name
41:         @payload        = payload.dup
42:         @time           = start
43:         @transaction_id = transaction_id
44:         @end            = ending
45:         @duration       = 1000.0 * (@end - @time)
46:       end

Public Instance Methods

parent_of?(event) click to toggle source
    # File lib/active_support/notifications/instrumenter.rb, line 48
48:       def parent_of?(event)
49:         start = (time - event.time) * 1000
50:         start <= 0 && (start + duration >= event.duration)
51:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.