struct Athena::Routing::Action::View
- Athena::Routing::Action::View
- Struct
- Value
- Object
Overview
Stores runtime configuration data from the ART::View
annotation about how to render the output of the related action.
This includes the action's HTTP::Status
and any serialization related configuration options.
Defined in:
athena.crConstructors
Instance Method Summary
-
#emit_nil : Bool
If
nil
values should be serialized. -
#has_custom_status? : Bool
Returns
true
if the action related toself
defined a custom status via theART::View
annotation, otherwisefalse
. -
#serialization_groups : Array(String) | Nil
The serialization groups to use for this route as part of
ASR::ExclusionStrategies::Groups
. -
#status : HTTP::Status
The
HTTP::Status
this action should return. - #validation_groups : Array(String) | Nil
Constructor Detail
Instance Method Detail
Returns true
if the action related to self
defined a custom status via the ART::View
annotation, otherwise false
.
The serialization groups to use for this route as part of ASR::ExclusionStrategies::Groups
.
The HTTP::Status
this action should return. Defaults to HTTP::Status::OK
(200).