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 Classes: HashAccessConfig
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 batch base_serializer hash_access ].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_preload_excluded_methods: %i[itself].freeze, hide_by_default: false, batch_id_option: :id, base_serializer: nil, hash_access: {default_mode: :symbol, default_allow_missing_key: false} }.freeze
Instance Attribute Summary
Attributes included from Serega::SeregaHelpers::SerializerClassHelper
Attributes included from SeregaConfigInstanceMethods
Method Summary
Methods included from SeregaConfigInstanceMethods
#attribute_keys, #auto_preload, #auto_preload=, #auto_preload_excluded_methods, #auto_preload_excluded_methods=, #base_serializer, #base_serializer=, #batch_id_option, #batch_id_option=, #check_attribute_name, #check_attribute_name=, #check_initiate_params, #check_initiate_params=, #delegate_default_allow_nil, #delegate_default_allow_nil=, #hash_access, #hide_by_default, #hide_by_default=, #initialize, #initiate_keys, #max_cached_plans_per_serializer_count, #max_cached_plans_per_serializer_count=, #plugins, #serialize_keys