Class: Couchbase::SearchFacetResult::TermFacetResult

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

Defined Under Namespace

Classes: TermFacet

Instance Attribute Summary collapse

Attributes inherited from Couchbase::SearchFacetResult

#field, #missing, #name, #other, #total

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ TermFacetResult

Returns a new instance of TermFacetResult.

Yield Parameters:



1428
1429
1430
1431
# File 'lib/couchbase/search_options.rb', line 1428

def initialize
  super
  yield self if block_given?
end

Instance Attribute Details

#termsArray<TermFacet>

Returns:



1421
1422
1423
# File 'lib/couchbase/search_options.rb', line 1421

def terms
  @terms
end

Instance Method Details

#typeObject



1423
1424
1425
# File 'lib/couchbase/search_options.rb', line 1423

def type
  :term_facet
end