Class: Couchbase::ScanTerm
- Inherits:
-
Object
- Object
- Couchbase::ScanTerm
- Defined in:
- lib/couchbase/key_value_scan.rb
Overview
A scan term used to specify the bounds of a range scan
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(term, exclusive: false) ⇒ ScanTerm
constructor
Creates an instance of a ScanTerm.
- #to_backend ⇒ Object private
Constructor Details
#initialize(term, exclusive: false) ⇒ ScanTerm
Creates an instance of a ScanTerm
25 26 27 28 |
# File 'lib/couchbase/key_value_scan.rb', line 25 def initialize(term, exclusive: false) @term = term @exclusive = exclusive end |
Instance Attribute Details
#exclusive ⇒ Boolean
19 20 21 |
# File 'lib/couchbase/key_value_scan.rb', line 19 def exclusive @exclusive end |
Instance Method Details
#to_backend ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 34 35 36 |
# File 'lib/couchbase/key_value_scan.rb', line 31 def to_backend { term: @term, exclusive: @exclusive, } end |