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 38
38:       def initialize(name, start, ending, transaction_id, payload)
39:         @name           = name
40:         @payload        = payload.dup
41:         @time           = start
42:         @transaction_id = transaction_id
43:         @end            = ending
44:         @duration       = 1000.0 * (@end - @time)
45:       end

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.