Module: Serega::SeregaPlanPoint::InstanceMethods
Overview
SeregaPlanPoint instance methods
Instance Attribute Summary collapse
-
#attribute ⇒ SeregaAttribute
readonly
Shows current attribute.
-
#child_plan ⇒ SeregaPlan?
readonly
Shows child plan if exists.
-
#modifiers ⇒ Hash
readonly
Child fields to serialize.
-
#plan ⇒ SeregaAttribute
Link to current plan this point belongs to.
Instance Method Summary collapse
-
#child_object_serializer ⇒ SeregaObjectSerializer
Object serializer for child plan.
-
#initialize(attribute, modifiers = nil) ⇒ SeregaPlanPoint
Initializes plan point.
-
#many ⇒ Object
Attribute ‘many` option.
-
#name ⇒ Object
Attribute ‘name`.
-
#serializer ⇒ Object
Attribute ‘serializer` option.
-
#value ⇒ Object
Attribute ‘value` block.
Instance Attribute Details
#attribute ⇒ SeregaAttribute (readonly)
Shows current attribute
20 21 22 |
# File 'lib/serega/plan_point.rb', line 20 def attribute @attribute end |
#child_plan ⇒ SeregaPlan? (readonly)
Shows child plan if exists
24 25 26 |
# File 'lib/serega/plan_point.rb', line 24 def child_plan @child_plan end |
#modifiers ⇒ Hash (readonly)
Child fields to serialize
28 29 30 |
# File 'lib/serega/plan_point.rb', line 28 def modifiers @modifiers end |
#plan ⇒ SeregaAttribute
Link to current plan this point belongs to
16 17 18 |
# File 'lib/serega/plan_point.rb', line 16 def plan @plan end |
Instance Method Details
#child_object_serializer ⇒ SeregaObjectSerializer
Returns object serializer for child plan.
64 65 66 |
# File 'lib/serega/plan_point.rb', line 64 def child_object_serializer serializer::SeregaObjectSerializer end |
#initialize(attribute, modifiers = nil) ⇒ SeregaPlanPoint
Initializes plan point
55 56 57 58 59 |
# File 'lib/serega/plan_point.rb', line 55 def initialize(attribute, modifiers = nil) @attribute = attribute @modifiers = modifiers set_normalized_vars end |
#many ⇒ Object
Attribute ‘many` option
42 |
# File 'lib/serega/plan_point.rb', line 42 def_delegators :@attribute, :name, :value, :many, :serializer |
#name ⇒ Object
Attribute ‘name`
42 |
# File 'lib/serega/plan_point.rb', line 42 def_delegators :@attribute, :name, :value, :many, :serializer |
#serializer ⇒ Object
Attribute ‘serializer` option
42 |
# File 'lib/serega/plan_point.rb', line 42 def_delegators :@attribute, :name, :value, :many, :serializer |
#value ⇒ Object
Attribute ‘value` block
42 |
# File 'lib/serega/plan_point.rb', line 42 def_delegators :@attribute, :name, :value, :many, :serializer |