Class: ActiveSupport::Notifications::Fanout::EventObjectGroup
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from BaseGroup
Constructor Details
This class inherits a constructor from ActiveSupport::Notifications::Fanout::BaseGroup
Instance Method Details
#finish(name, id, payload) ⇒ Object
173 174 175 176 177 178 179 180 |
# File 'lib/active_support/notifications/fanout.rb', line 173 def finish(name, id, payload) @event.payload = payload @event.finish! each do |s| s.call(@event) end end |
#start(name, id, payload) ⇒ Object
168 169 170 171 |
# File 'lib/active_support/notifications/fanout.rb', line 168 def start(name, id, payload) @event = build_event(name, id, payload) @event.start! end |