Class: SurrealDB::GeometryMultiPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/surrealdb/models/geometry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*points) ⇒ GeometryMultiPoint

Returns a new instance of GeometryMultiPoint.



87
88
89
# File 'lib/surrealdb/models/geometry.rb', line 87

def initialize(*points)
  @points = points.freeze
end

Instance Attribute Details

#pointsObject (readonly)

Returns the value of attribute points.



85
86
87
# File 'lib/surrealdb/models/geometry.rb', line 85

def points
  @points
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



91
92
93
# File 'lib/surrealdb/models/geometry.rb', line 91

def ==(other)
  other.is_a?(GeometryMultiPoint) && other.points == @points
end

#hashObject



96
97
98
# File 'lib/surrealdb/models/geometry.rb', line 96

def hash
  [self.class, @points].hash
end