Class: SurrealDB::GeometryMultiLine
- Inherits:
-
Object
- Object
- SurrealDB::GeometryMultiLine
- Defined in:
- lib/surrealdb/models/geometry.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(*lines) ⇒ GeometryMultiLine
constructor
A new instance of GeometryMultiLine.
Constructor Details
#initialize(*lines) ⇒ GeometryMultiLine
Returns a new instance of GeometryMultiLine.
104 105 106 |
# File 'lib/surrealdb/models/geometry.rb', line 104 def initialize(*lines) @lines = lines.freeze end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
102 103 104 |
# File 'lib/surrealdb/models/geometry.rb', line 102 def lines @lines end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
108 109 110 |
# File 'lib/surrealdb/models/geometry.rb', line 108 def ==(other) other.is_a?(GeometryMultiLine) && other.lines == @lines end |
#hash ⇒ Object
113 114 115 |
# File 'lib/surrealdb/models/geometry.rb', line 113 def hash [self.class, @lines].hash end |