Class: Serega::SeregaObjectSerializer

Inherits:
Object
  • Object
show all
Extended by:
Serega::SeregaHelpers::SerializerClassHelper
Includes:
InstanceMethods
Defined in:
lib/serega/object_serializer.rb

Overview

Low-level class used by the serializer to construct the serialized response.

Serialization is level-by-level. #serialize builds the result container(s) and enqueues this level; the batch queue later calls #process for each level, which resolves every attribute for every object and enqueues child levels for relations.

Defined Under Namespace

Modules: InstanceMethods

Instance Attribute Summary

Attributes included from Serega::SeregaHelpers::SerializerClassHelper

#serializer_class

Attributes included from InstanceMethods

#context, #level_queue, #many, #opts, #plan

Method Summary

Methods included from InstanceMethods

#initialize, #process, #serialize