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
172 173 174 175 176 177 178 179 |
# File '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 'lib/active_support/notifications/fanout.rb', line 167 def start(name, id, payload) @event = build_event(name, id, payload) @event.start! end |