Class: ActiveSupport::Notifications::Fanout::BaseTimeGroup

Inherits:
BaseGroup show all
Defined in:
activesupport/lib/active_support/notifications/fanout.rb

Overview

:nodoc:

Direct Known Subclasses

MonotonicTimedGroup, TimedGroup

Instance Method Summary collapse

Methods inherited from BaseGroup

#each, #initialize

Methods included from ActiveSupport::Notifications::FanoutIteration

#iterate_guarding_exceptions

Constructor Details

This class inherits a constructor from ActiveSupport::Notifications::Fanout::BaseGroup

Instance Method Details

#finish(name, id, payload) ⇒ Object



130
131
132
133
134
135
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 130

def finish(name, id, payload)
  stop_time = now
  each do |listener|
    listener.call(name, @start_time, stop_time, id, payload)
  end
end

#start(name, id, payload) ⇒ Object



126
127
128
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 126

def start(name, id, payload)
  @start_time = now
end