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[ method value serializer many hide const delegate default preload preload_path batch ].freeze, serialize_keys: %i[context many].freeze, check_attribute_name: true, check_initiate_params: true, delegate_default_allow_nil: false, max_cached_plans_per_serializer_count: 0, auto_preload: {has_delegate_option: false, has_serializer_option: false}, auto_hide: {has_preload_option: false, has_batch_option: false}, # auto_preload_attributes_with_delegate: false, # auto_preload_attributes_with_serializer: false, # auto_hide_attributes_with_preload: false, # hide_batch_attributes: false, 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, #auto_hide, #auto_hide=, #auto_preload, #auto_preload=, #check_attribute_name, #check_attribute_name=, #check_initiate_params, #check_initiate_params=, #delegate_default_allow_nil, #delegate_default_allow_nil=, #from_json, #from_json=, #initialize, #initiate_keys, #max_cached_plans_per_serializer_count, #max_cached_plans_per_serializer_count=, #plugins, #serialize_keys, #to_json, #to_json=