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]

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

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

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)

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

def count
  @count
end

#termString (readonly)

Returns:

  • (String)

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

def term
  @term
end