Class: Couchbase::RangeScan
- Inherits:
-
Object
- Object
- Couchbase::RangeScan
- Defined in:
- lib/couchbase/key_value_scan.rb
Overview
A range scan performs a scan on a range of keys
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(from: nil, to: nil) ⇒ RangeScan
constructor
Creates an instance of a RangeScan scan type.
Constructor Details
#initialize(from: nil, to: nil) ⇒ RangeScan
Creates an instance of a RangeScan scan type
50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/couchbase/key_value_scan.rb', line 50 def initialize(from: nil, to: nil) @from = if from.nil? || from.instance_of?(ScanTerm) from else ScanTerm(from) end @to = if to.nil? || to.instance_of?(ScanTerm) to else ScanTerm(to) end end |