Class: Couchbase::SearchFacetResult::TermFacetResult

Inherits:
Couchbase::SearchFacetResult show all
Defined in:
lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/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:



1456
1457
1458
1459
# File 'lib/couchbase/search_options.rb', line 1456

def initialize
  super
  yield self if block_given?
end

Instance Attribute Details

#termsArray<TermFacet>

Returns:



1449
1450
1451
# File 'lib/couchbase/search_options.rb', line 1449

def terms
  @terms
end

Instance Method Details

#typeObject



1451
1452
1453
# File 'lib/couchbase/search_options.rb', line 1451

def type
  :term_facet
end