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]

1400
1401
1402
1403
1404
# File 'lib/couchbase/search_options.rb', line 1400

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

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)

1398
1399
1400
# File 'lib/couchbase/search_options.rb', line 1398

def count
  @count
end

#termString (readonly)

Returns:

  • (String)

1395
1396
1397
# File 'lib/couchbase/search_options.rb', line 1395

def term
  @term
end