Module: Serega::SeregaMapPoint::InstanceMethods

Extended by:
Forwardable
Included in:
Serega::SeregaMapPoint
Defined in:
lib/serega/map_point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



8
9
10
# File 'lib/serega/map_point.rb', line 8

def attribute
  @attribute
end

#nested_pointsObject (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

#==(other) ⇒ Object

TODO: remove, we use this method in tests only



26
27
28
# File 'lib/serega/map_point.rb', line 26

def ==(other)
  (other.attribute == attribute) && (other.nested_points == nested_points)
end

#has_nested_points?Boolean

Returns:

  • (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_serializerObject



21
22
23
# File 'lib/serega/map_point.rb', line 21

def nested_object_serializer
  attribute.serializer::SeregaObjectSerializer
end