Class: SurrealDB::GeometryMultiPoint
- Inherits:
-
Object
- Object
- SurrealDB::GeometryMultiPoint
- Defined in:
- lib/surrealdb/models/geometry.rb
Instance Attribute Summary collapse
-
#points ⇒ Object
readonly
Returns the value of attribute points.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(*points) ⇒ GeometryMultiPoint
constructor
A new instance of GeometryMultiPoint.
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
#points ⇒ Object (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 |
#hash ⇒ Object
96 97 98 |
# File 'lib/surrealdb/models/geometry.rb', line 96 def hash [self.class, @points].hash end |