Class: Serega::SeregaConfig
- Inherits:
-
Object
- Object
- Serega::SeregaConfig
- Extended by:
- Serega::SeregaHelpers::SerializerClassHelper
- Includes:
- SeregaConfigInstanceMethods
- Defined in:
- lib/serega/config.rb
Overview
Stores serialization config
Defined Under Namespace
Modules: SeregaConfigInstanceMethods
Constant Summary collapse
- DEFAULTS =
Default config options
{ plugins: [], initiate_keys: %i[only with except check_initiate_params].freeze, attribute_keys: %i[key value serializer many hide const delegate].freeze, serialize_keys: %i[context many].freeze, check_initiate_params: true, max_cached_map_per_serializer_count: 0, to_json: (SeregaJSON.adapter == :oj) ? SeregaJSON::OjDump : SeregaJSON::JSONDump, from_json: (SeregaJSON.adapter == :oj) ? SeregaJSON::OjLoad : SeregaJSON::JSONLoad }.freeze
Instance Attribute Summary
Attributes included from Serega::SeregaHelpers::SerializerClassHelper
Attributes included from SeregaConfigInstanceMethods
Method Summary
Methods included from SeregaConfigInstanceMethods
#attribute_keys, #check_initiate_params, #check_initiate_params=, #from_json, #from_json=, #initialize, #initiate_keys, #max_cached_map_per_serializer_count, #max_cached_map_per_serializer_count=, #plugins, #serialize_keys, #to_json, #to_json=