Class: Couchbase::SearchSort::SearchSortId

Inherits:
Couchbase::SearchSort show all
Defined in:
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 {|| ... } ⇒ SearchSortId

Returns a new instance of SearchSortId.

Yield Parameters:



1153
1154
1155
1156
# File 'lib/couchbase/search_options.rb', line 1153

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



1150
1151
1152
# File 'lib/couchbase/search_options.rb', line 1150

def desc
  @desc
end