struct Athena::Routing::Action(Controller, ActionType, ReturnType, ArgTypeTuple, ArgumentsType)
- Athena::Routing::Action(Controller, ActionType, ReturnType, ArgTypeTuple, ArgumentsType)
- Athena::Routing::ActionBase
- Struct
- Value
- Object
Overview
Represents an endpoint within the application.
Includes metadata about the endpoint, such as its controller, arguments, return type, and the action that should be executed.
Defined in:
athena.crConstructors
Instance Method Summary
-
#action_name : String
The name of the the controller action related to
self
. -
#annotation_configurations : ACF::AnnotationConfigurations
Returns annotation configurations registered via
Athena::Config.configuration_annotation
and applied toself
. -
#arguments : ArgumentsType
An
Array(ART::Arguments::ArgumentMetadata)
thatself
requires. -
#controller : Controller.class
The
ART::Controller
that includesself
. -
#execute(arguments : Array) : ReturnType
Executes the action related to
self
with the provided arguments array. -
#method : String
The HTTP method associated with
self
. -
#param_converters : Array(ART::ParamConverterInterface::ConfigurationInterface)
An
Array(ART::ParamConverterInterface::ConfigurationInterface)
representing theART::ParamConverter
s applied toself
. -
#return_type : ReturnType.class
The type that
self
's route should return. -
#view : View
The
ART::Action::View
configuration related toself
.
Instance methods inherited from struct Athena::Routing::ActionBase
initialize
initialize
Constructor methods inherited from struct Athena::Routing::ActionBase
new
new
Constructor Detail
Instance Method Detail
Returns annotation configurations registered via Athena::Config.configuration_annotation
and applied to self
.
These configurations could then be accessed within ART::ParamConverterInterface
s and/or ART::Listeners
s.
See ART::Events::RequestAware
for an example.
Executes the action related to self
with the provided arguments array.
An Array(ART::ParamConverterInterface::ConfigurationInterface)
representing the ART::ParamConverter
s applied to self
.