Method: ActiveSupport::Notifications::Event#initialize

Defined in:
lib/active_support/notifications/instrumenter.rb

#initialize(name, start, ending, transaction_id, payload) ⇒ Event

Returns a new instance of Event.



58
59
60
61
62
63
64
65
66
# File 'lib/active_support/notifications/instrumenter.rb', line 58

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