class Athena::Framework::View::Context
inherits Reference
#
Represents (de)serialization options in a serializer agnostic way.
Note
These options only apply if the Serializer bundle is registered, otherwise data is serialized via #to_json.
Methods#
#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.
#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.