class Athena::Framework::View::Context
inherits Reference
#
Represents (de)serialization options in a serializer agnostic way.
Methods#
#add_exclusion_strategy(strategy : ASR::ExclusionStrategies::ExclusionStrategyInterface) : self#
Adds the provided strategy to the #exclusion_strategies array.
#add_groups(groups : Enumerable(String)) : self#
Adds the provided groups to the #groups array.
#emit_nil=(emit_nil : Bool | Nil)#
Determines if properties with nil values should be emitted.
#exclusion_strategies#
Returns any ASR::ExclusionStrategies::ExclusionStrategyInterface that should be used by the serializer.
#groups : Set(String) | ::Nil#
Returns the groups that can be used to create different "views" of an object.
ASR::ExclusionStrategies::Groups is an example of this.
#groups=(groups : Enumerable(String)) : self#
Sets the #groups array to the provided groups.
#version : SemanticVersion | ::Nil#
Represents the version of an object. Can be used to control what properties are serialized based on the version.
ASR::ExclusionStrategies::Version is an example of this.
#version=(version : SemanticVersion | Nil)#
Represents the version of an object. Can be used to control what properties are serialized based on the version.
ASR::ExclusionStrategies::Version is an example of this.