Class: Serega::SeregaConfig

Inherits:
Object
  • Object
show all
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},
  hide_by_default: false,
  batch_id_option: :id
}.freeze

Instance Attribute Summary

Attributes included from Serega::SeregaHelpers::SerializerClassHelper

#serializer_class

Attributes included from SeregaConfigInstanceMethods

#opts

Method Summary

Methods included from SeregaConfigInstanceMethods

#attribute_keys, #auto_preload, #auto_preload=, #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=, #hide_by_default, #hide_by_default=, #initialize, #initiate_keys, #max_cached_plans_per_serializer_count, #max_cached_plans_per_serializer_count=, #plugins, #serialize_keys