Class: Serega
- Inherits:
-
Object
- Object
- Serega
- Extended by:
- ClassMethods
- Includes:
- InstanceMethods
- Defined in:
- lib/serega.rb,
lib/serega.rb,
lib/serega/plan.rb,
lib/serega/config.rb,
lib/serega/errors.rb,
lib/serega/plugins.rb,
lib/serega/version.rb,
lib/serega/attribute.rb,
lib/serega/plan_point.rb,
lib/serega/batch/loader.rb,
lib/serega/plugins/if/if.rb,
lib/serega/utils/to_hash.rb,
lib/serega/object_serializer.rb,
lib/serega/plugins/root/root.rb,
lib/serega/utils/symbol_name.rb,
lib/serega/utils/enum_deep_dup.rb,
lib/serega/utils/preload_paths.rb,
lib/serega/attribute_normalizer.rb,
lib/serega/batch/attribute_loader.rb,
lib/serega/utils/enum_deep_freeze.rb,
lib/serega/utils/method_signature.rb,
lib/serega/batch/attribute_loaders.rb,
lib/serega/plugins/metadata/metadata.rb,
lib/serega/utils/format_user_preloads.rb,
lib/serega/utils/preloads_constructor.rb,
lib/serega/plugins/presenter/presenter.rb,
lib/serega/plugins/camel_case/camel_case.rb,
lib/serega/plugins/formatters/formatters.rb,
lib/serega/attribute_value_resolvers/batch.rb,
lib/serega/attribute_value_resolvers/const.rb,
lib/serega/helpers/serializer_class_helper.rb,
lib/serega/plugins/depth_limit/depth_limit.rb,
lib/serega/plugins/metadata/meta_attribute.rb,
lib/serega/validations/attribute/check_name.rb,
lib/serega/attribute_value_resolvers/keyword.rb,
lib/serega/validations/attribute/check_block.rb,
lib/serega/validations/check_initiate_params.rb,
lib/serega/attribute_value_resolvers/delegate.rb,
lib/serega/validations/check_attribute_params.rb,
lib/serega/validations/check_serialize_params.rb,
lib/serega/plugins/if/validations/check_opt_if.rb,
lib/serega/validations/utils/check_opt_is_bool.rb,
lib/serega/validations/utils/check_opt_is_hash.rb,
lib/serega/validations/attribute/check_opt_hide.rb,
lib/serega/validations/attribute/check_opt_many.rb,
lib/serega/validations/initiate/check_modifiers.rb,
lib/serega/validations/utils/check_allowed_keys.rb,
lib/serega/validations/attribute/check_opt_batch.rb,
lib/serega/validations/attribute/check_opt_const.rb,
lib/serega/validations/attribute/check_opt_value.rb,
lib/serega/validations/check_batch_loader_params.rb,
lib/serega/validations/attribute/check_opt_method.rb,
lib/serega/plugins/if/validations/check_opt_unless.rb,
lib/serega/plugins/metadata/validations/check_opts.rb,
lib/serega/plugins/metadata/validations/check_path.rb,
lib/serega/validations/attribute/check_opt_preload.rb,
lib/serega/plugins/metadata/validations/check_block.rb,
lib/serega/validations/attribute/check_opt_delegate.rb,
lib/serega/plugins/context_metadata/context_metadata.rb,
lib/serega/plugins/if/validations/check_opt_if_value.rb,
lib/serega/plugins/string_modifiers/string_modifiers.rb,
lib/serega/validations/attribute/check_opt_serializer.rb,
lib/serega/plugins/activerecord_preloads/lib/preloader.rb,
lib/serega/plugins/metadata/validations/check_opt_const.rb,
lib/serega/plugins/metadata/validations/check_opt_value.rb,
lib/serega/validations/attribute/check_opt_preload_path.rb,
lib/serega/plugins/if/validations/check_opt_unless_value.rb,
lib/serega/plugins/metadata/validations/check_opt_hide_nil.rb,
lib/serega/plugins/string_modifiers/parse_string_modifiers.rb,
lib/serega/validations/utils/check_opt_is_string_or_symbol.rb,
lib/serega/plugins/explicit_many_option/explicit_many_option.rb,
lib/serega/plugins/metadata/validations/check_opt_hide_empty.rb,
lib/serega/plugins/activerecord_preloads/activerecord_preloads.rb,
lib/serega/plugins/activerecord_preloads/lib/active_record_objects.rb,
lib/serega/plugins/explicit_many_option/validations/check_opt_many.rb
Overview
Parent class for your serializers
Defined Under Namespace
Modules: AttributeValueResolvers, ClassMethods, InstanceMethods, SeregaBatch, SeregaHelpers, SeregaPlugins, SeregaUtils, SeregaValidations Classes: AttributeNotExist, DepthLimitError, SeregaAttribute, SeregaAttributeNormalizer, SeregaConfig, SeregaError, SeregaObjectSerializer, SeregaPlan, SeregaPlanPoint
Constant Summary collapse
- FROZEN_EMPTY_HASH =
Frozen hash
{}.freeze
- FROZEN_EMPTY_ARRAY =
Frozen array
[].freeze
- VERSION =
Serega gem version
File.read(File.join(File.dirname(__FILE__), "../../VERSION")).strip
Instance Attribute Summary
Attributes included from ClassMethods
Attributes included from InstanceMethods
Method Summary
Methods included from ClassMethods
attribute, attributes, batch, batch_loaders, call, plugin, plugin_used?