Class: SurrealDB::BoundIncluded

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ BoundIncluded

Returns a new instance of BoundIncluded.



7
8
9
# File 'lib/surrealdb/models/range.rb', line 7

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/surrealdb/models/range.rb', line 5

def value
  @value
end

Instance Method Details

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



11
12
13
# File 'lib/surrealdb/models/range.rb', line 11

def ==(other)
  other.is_a?(BoundIncluded) && other.value == @value
end

#hashObject



16
17
18
# File 'lib/surrealdb/models/range.rb', line 16

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

#inspectObject



20
21
22
# File 'lib/surrealdb/models/range.rb', line 20

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