Class: Couchbase::SearchSort::SearchSortScore

Inherits:
Couchbase::SearchSort show all
Defined in:
lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/lib/couchbase/search_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Couchbase::SearchSort

field, geo_distance, id, score

Constructor Details

#initialize {|| ... } ⇒ SearchSortScore

Returns a new instance of SearchSortScore.

Yield Parameters:



1165
1166
1167
1168
# File 'lib/couchbase/search_options.rb', line 1165

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



1162
1163
1164
# File 'lib/couchbase/search_options.rb', line 1162

def desc
  @desc
end