Class: SurrealDB::BoundExcluded
- Inherits:
-
Object
- Object
- SurrealDB::BoundExcluded
- Defined in:
- lib/surrealdb/models/range.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(value) ⇒ BoundExcluded
constructor
A new instance of BoundExcluded.
- #inspect ⇒ Object
Constructor Details
#initialize(value) ⇒ BoundExcluded
Returns a new instance of BoundExcluded.
28 29 30 |
# File 'lib/surrealdb/models/range.rb', line 28 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
26 27 28 |
# File 'lib/surrealdb/models/range.rb', line 26 def value @value end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
32 33 34 |
# File 'lib/surrealdb/models/range.rb', line 32 def ==(other) other.is_a?(BoundExcluded) && other.value == @value end |
#hash ⇒ Object
37 38 39 |
# File 'lib/surrealdb/models/range.rb', line 37 def hash [self.class, @value].hash end |
#inspect ⇒ Object
41 42 43 |
# File 'lib/surrealdb/models/range.rb', line 41 def inspect "BoundExcluded(#{@value.inspect})" end |