Class: Couchbase::Cluster::SearchSort::SearchSortId

Inherits:
Couchbase::Cluster::SearchSort show all
Defined in:
lib/couchbase/search_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/search_options.rb
more...

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Couchbase::Cluster::SearchSort

field, geo_distance, id, score

Constructor Details

#initialize {|| ... } ⇒ SearchSortId

Returns a new instance of SearchSortId.

Yield Parameters:

[View source]

1119
1120
1121
1122
# File 'lib/couchbase/search_options.rb', line 1119

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


1116
1117
1118
# File 'lib/couchbase/search_options.rb', line 1116

def desc
  @desc
end