module Airbrake::Rack::RequestStore

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

# sig/airbrake/rack/request_store.rbs

module Airbrake::Rack::RequestStore
  def []: (Symbol key) -> untyped
  def []=: (Symbol key, ActionDispatch::Request value) -> untyped
  def store: () -> untyped
end

def [](key)

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

def []: (Symbol key) -> untyped

This signature was generated using 5 samples from 1 application.

Returns:
  • (Object) -
def [](key)
  store[key]
end

def []=(key, value)

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

def []=: (Symbol key, ActionDispatch::Request value) -> untyped

This signature was generated using 1 sample from 1 application.

Returns:
  • (void) -
def []=(key, value)
  store[key] = value
end

def clear

Returns:
  • (void) -
def clear
  Thread.current[:airbrake] = {}
end

def store

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

def store: () -> untyped

This signature was generated using 10 samples from 1 application.

Returns:
  • (Hash) - a hash for all request-related data
def store
  Thread.current[:airbrake] ||= {}
end