class ActiveSupport::Notifications::Fanout::Subscribers::EventObject
Public Instance Methods
Source
# File lib/active_support/notifications/fanout.rb, line 262 def finish(name, id, payload) stack = IsolatedExecutionState[:_event_stack] event = stack.pop event.payload = payload event.finish! @delegate.call event end
Source
# File lib/active_support/notifications/fanout.rb, line 270 def publish_event(event) @delegate.call event end
Source
# File lib/active_support/notifications/fanout.rb, line 255 def start(name, id, payload) stack = IsolatedExecutionState[:_event_stack] ||= [] event = build_event name, id, payload event.start! stack.push event end
Private Instance Methods
Source
# File lib/active_support/notifications/fanout.rb, line 275 def build_event(name, id, payload) ActiveSupport::Notifications::Event.new name, nil, nil, id, payload end