Class: Otto::RouteHandlers::LogicClassHandler
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- Otto::RouteHandlers::LogicClassHandler
- Defined in:
- lib/otto/route_handlers/logic_class.rb
Overview
Handler for Logic classes (new in Otto Framework Enhancement)
Logic classes use a constrained signature: initialize(context, params, locale)
-
context: The authentication strategy result (user info, session data)
-
params: Merged request parameters (URL params + body + extra_params)
-
locale: The locale string from env
IMPORTANT: Logic classes do NOT receive the Rack request or env hash. This is intentional - Logic classes work with clean, authenticated contexts. For endpoints requiring direct request access (sessions, cookies, headers, or logout flows), use controller handlers (Controller#action or Controller.action).
Instance Attribute Summary
Attributes inherited from BaseHandler
#otto_instance, #route_definition
Method Summary
Methods inherited from BaseHandler
Constructor Details
This class inherits a constructor from Otto::RouteHandlers::BaseHandler