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

Inherits:
Object
  • Object
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

Constructor Details

#initialize(term, count) ⇒ TermFacet

Returns a new instance of TermFacet.

[View source]

1323
1324
1325
1326
1327
# File 'lib/couchbase/search_options.rb', line 1323

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

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)

1321
1322
1323
# File 'lib/couchbase/search_options.rb', line 1321

def count
  @count
end

#termString (readonly)

Returns:

  • (String)

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

def term
  @term
end