class RailsBand::ActionController::Event::ProcessAction

A wrapper for the event that is passed to ‘process_action.action_controller`.

def action

def action
  @action ||= @event.payload.fetch(:action)
end

def controller

def controller
  @controller ||= @event.payload.fetch(:controller)
end

def db_runtime

def db_runtime
  return @db_runtime if defined? @db_runtime
  @db_runtime = @event.payload[:db_runtime]
end

def format

def format
  @format ||= @event.payload.fetch(:format)
end

def headers

def headers
  @headers ||= @event.payload.fetch(:headers)
end

def method

def method
  @method ||= @event.payload.fetch(:method)
end

def params

def params
  @params ||= @event.payload.fetch(:params).except(*INTERNAL_PARAMS)
end

def path

def path
  @path ||= @event.payload.fetch(:path).split('?', 2).first
end

def status

def status
  @status ||=
    begin
      status = @event.payload[:status]
      if status.nil? && (exception_class_name = @event.payload[:exception]&.first)
        status = ::ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name)
      end
      status
    end
end

def view_runtime

def view_runtime
  @view_runtime ||= @event.payload.fetch(:view_runtime)
end