Class: ActiveSupport::Notifications::Fanout::EventObjectGroup

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

Overview

:nodoc:

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



172
173
174
175
176
177
178
179
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 172

def finish(name, id, payload)
  @event.payload = payload
  @event.finish!

  each do |s|
    s.call(@event)
  end
end

#start(name, id, payload) ⇒ Object



167
168
169
170
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 167

def start(name, id, payload)
  @event = build_event(name, id, payload)
  @event.start!
end