Module: Serega::SeregaPlan::InstanceMethods
- Included in:
- Serega::SeregaPlan
- Defined in:
- lib/serega/plan.rb
Overview
SeregaPlan instance methods
Instance Attribute Summary collapse
-
#parent_plan_point ⇒ SeregaPlanPoint?
readonly
Parent plan point.
-
#points ⇒ Array<SeregaPlanPoint>
readonly
Serialization points.
Instance Method Summary collapse
-
#initialize(parent_plan_point, modifiers) ⇒ SeregaPlan
Instantiate new serialization plan.
-
#serializer_class ⇒ Object
Serializer class of current plan.
Instance Attribute Details
#parent_plan_point ⇒ SeregaPlanPoint? (readonly)
Parent plan point
62 63 64 |
# File 'lib/serega/plan.rb', line 62 def parent_plan_point @parent_plan_point end |
#points ⇒ Array<SeregaPlanPoint> (readonly)
Serialization points
66 67 68 |
# File 'lib/serega/plan.rb', line 66 def points @points end |
Instance Method Details
#initialize(parent_plan_point, modifiers) ⇒ SeregaPlan
Instantiate new serialization plan
Patched by
- depth_limit plugin, which checks depth limit is not exceeded when adding new plan
82 83 84 85 |
# File 'lib/serega/plan.rb', line 82 def initialize(parent_plan_point, modifiers) @parent_plan_point = parent_plan_point @points = attributes_points(modifiers) end |
#serializer_class ⇒ Object
Serializer class of current plan
90 91 92 |
# File 'lib/serega/plan.rb', line 90 def serializer_class self.class.serializer_class end |