class ActiveSupport::Notifications::Fanout::Subscribers::EventObject

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/active_support/notifications/fanout.rbs

class ActiveSupport::Notifications::Fanout::Subscribers::EventObject < ActiveSupport::Notifications::Fanout::Subscribers::Evented
  def build_event: (String name, String id, Hash payload) -> ActiveSupport::Notifications::Event
  def finish: (String name, String id, Hash payload) -> untyped
  def start: (String name, String id, Hash payload) -> untyped
end

def build_event(name, id, payload)

Experimental RBS support (using type sampling data from the type_fusion project).

type ActiveSupport__Notifications__Fanout__Subscribers__EventObject_build_event_payload = controller | String | action | String | request | ActionDispatch::Request | params | authenticity_token | String | user | email | String | commit | String | controller | String | action | String | headers | ActionDispatch::Http::Headers | format | Symbol | method | String | path | String | record_count | Integer | class_name | String | sql | String | name | String | binds |  | type_casted_binds |  | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | sql | String | name | String | binds | ActiveRecord::Relation::QueryAttribute | type_casted_binds | Integer | statement_name | String | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

def build_event: (String name, String id, ActiveSupport__Notifications__Fanout__Subscribers__EventObject_build_event_payload payload) -> ActiveSupport::Notifications::Event

This signature was generated using 5 samples from 1 application.

def build_event(name, id, payload)
  ActiveSupport::Notifications::Event.new name, nil, nil, id, payload
end

def finish(name, id, payload)

Experimental RBS support (using type sampling data from the type_fusion project).

def finish: (String name, String id, (controller | String | action | String | request | ActionDispatch::Request | params | controller | String | action | String | headers | ActionDispatch::Http::Headers | format | Symbol | method | String | path | String | identifier | String | record_count | Integer | class_name | String) payload) -> untyped

This signature was generated using 4 samples from 1 application.

def finish(name, id, payload)
  stack = IsolatedExecutionState[:_event_stack]
  event = stack.pop
  event.payload = payload
  event.finish!
  @delegate.call event
end

def publish_event(event)

def publish_event(event)
  @delegate.call event
end

def start(name, id, payload)

Experimental RBS support (using type sampling data from the type_fusion project).

def start: (String name, String id, sql | String | name | String | binds | ActiveRecord::Relation::QueryAttribute | ActiveRecord::Relation::QueryAttribute | type_casted_binds | String | Integer | statement_name | NilClass | async | FalseClass | connection | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter payload) -> untyped

This signature was generated using 1 sample from 1 application.

def start(name, id, payload)
  stack = IsolatedExecutionState[:_event_stack] ||= []
  event = build_event name, id, payload
  event.start!
  stack.push event
end