Class: Couchbase::Cluster::SearchSort::SearchSortScore

Inherits:
Couchbase::Cluster::SearchSort show all
Defined in:
lib/couchbase/search_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Couchbase::Cluster::SearchSort

field, geo_distance, id, score

Constructor Details

#initialize {|| ... } ⇒ SearchSortScore

Returns a new instance of SearchSortScore.

Yield Parameters:



1019
1020
1021
1022
# File 'lib/couchbase/search_options.rb', line 1019

def initialize
  super
  yield self if block_given?
end

Instance Attribute Details

#descBoolean

Returns if descending order should be applied.

Returns:

  • (Boolean)

    if descending order should be applied



1016
1017
1018
# File 'lib/couchbase/search_options.rb', line 1016

def desc
  @desc
end