Class: Couchbase::ScanTerm

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(term, exclusive: false) ⇒ ScanTerm

Creates an instance of a ScanTerm



27
28
29
30
# File 'lib/couchbase/key_value_scan.rb', line 27

def initialize(term, exclusive: false)
  @term = term
  @exclusive = exclusive
end

Instance Attribute Details

#exclusiveBoolean



21
22
23
# File 'lib/couchbase/key_value_scan.rb', line 21

def exclusive
  @exclusive
end

#termScanTerm



20
21
22
# File 'lib/couchbase/key_value_scan.rb', line 20

def term
  @term
end

Instance Method Details

#to_backendObject

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.

API:

  • private



33
34
35
36
37
38
# File 'lib/couchbase/key_value_scan.rb', line 33

def to_backend
  {
    term: @term,
    exclusive: @exclusive,
  }
end