Module: Serega::SeregaMapPoint::InstanceMethods
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#nested_points ⇒ Object
readonly
Returns the value of attribute nested_points.
Instance Method Summary collapse
- #has_nested_points? ⇒ Boolean
- #initialize(attribute, nested_points) ⇒ Object
- #nested_object_serializer ⇒ Object
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
8 9 10 |
# File 'lib/serega/map_point.rb', line 8 def attribute @attribute end |
#nested_points ⇒ Object (readonly)
Returns the value of attribute nested_points.
8 9 10 |
# File 'lib/serega/map_point.rb', line 8 def nested_points @nested_points end |
Instance Method Details
#has_nested_points? ⇒ Boolean
17 18 19 |
# File 'lib/serega/map_point.rb', line 17 def has_nested_points? !nested_points.nil? end |
#initialize(attribute, nested_points) ⇒ Object
12 13 14 15 |
# File 'lib/serega/map_point.rb', line 12 def initialize(attribute, nested_points) @attribute = attribute @nested_points = nested_points end |
#nested_object_serializer ⇒ Object
21 22 23 |
# File 'lib/serega/map_point.rb', line 21 def nested_object_serializer attribute.serializer::SeregaObjectSerializer end |