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
176 177 178 179 180 181 182 183 |
# File 'lib/active_support/notifications/fanout.rb', line 176 def finish(name, id, payload) @event.payload = payload @event.finish! each do |s| s.call(@event) end end |
#start(name, id, payload) ⇒ Object
171 172 173 174 |
# File 'lib/active_support/notifications/fanout.rb', line 171 def start(name, id, payload) @event = build_event(name, id, payload) @event.start! end |