Class: SurrealDB::BoundIncluded
- Inherits:
-
Object
- Object
- SurrealDB::BoundIncluded
- 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) ⇒ BoundIncluded
constructor
A new instance of BoundIncluded.
- #inspect ⇒ Object
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
#value ⇒ Object (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 |
#hash ⇒ Object
16 17 18 |
# File 'lib/surrealdb/models/range.rb', line 16 def hash [self.class, @value].hash end |
#inspect ⇒ Object
20 21 22 |
# File 'lib/surrealdb/models/range.rb', line 20 def inspect "BoundIncluded(#{@value.inspect})" end |