Class: Couchbase::Cluster::SearchFacetResult::TermFacetResult

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

Defined Under Namespace

Classes: TermFacet

Instance Attribute Summary collapse

Attributes inherited from Couchbase::Cluster::SearchFacetResult

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TermFacetResult.

Yield Parameters:



1305
1306
1307
1308
# File 'lib/couchbase/search_options.rb', line 1305

def initialize
  super
  yield self if block_given?
end

Instance Attribute Details

#termsArray<TermFacet>

Returns:



1298
1299
1300
# File 'lib/couchbase/search_options.rb', line 1298

def terms
  @terms
end

Instance Method Details

#typeObject



1300
1301
1302
# File 'lib/couchbase/search_options.rb', line 1300

def type
  :term_facet
end