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

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(term, count) ⇒ TermFacet

Returns a new instance of TermFacet.



1317
1318
1319
1320
1321
# File 'lib/couchbase/search_options.rb', line 1317

def initialize(term, count)
  super()
  @term = term
  @count = count
end

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)


1315
1316
1317
# File 'lib/couchbase/search_options.rb', line 1315

def count
  @count
end

#termString (readonly)

Returns:

  • (String)


1312
1313
1314
# File 'lib/couchbase/search_options.rb', line 1312

def term
  @term
end