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
nilvalues should be serialized. -
#has_custom_status? : Bool
Returns
trueif the action related toselfdefined a custom status via theART::Viewannotation, 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::Statusthis 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).