Class: SurrealDB::BoundExcluded

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#hashObject



37
38
39
# File 'lib/surrealdb/models/range.rb', line 37

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

#inspectObject



41
42
43
# File 'lib/surrealdb/models/range.rb', line 41

def inspect
  "BoundExcluded(#{@value.inspect})"
end