Class: Couchbase::SearchFacet::SearchFacetTerm
- Inherits:
-
Object
- Object
- Couchbase::SearchFacet::SearchFacetTerm
- Defined in:
- lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/lib/couchbase/search_options.rb
Instance Attribute Summary collapse
- #field ⇒ String readonly
- #size ⇒ Integer
Instance Method Summary collapse
-
#initialize(field) {|_self| ... } ⇒ SearchFacetTerm
constructor
A new instance of SearchFacetTerm.
Constructor Details
#initialize(field) {|_self| ... } ⇒ SearchFacetTerm
Returns a new instance of SearchFacetTerm.
1284 1285 1286 1287 |
# File 'lib/couchbase/search_options.rb', line 1284 def initialize(field) @field = field yield self if block_given? end |
Instance Attribute Details
#field ⇒ String (readonly)
1278 1279 1280 |
# File 'lib/couchbase/search_options.rb', line 1278 def field @field end |
#size ⇒ Integer
1281 1282 1283 |
# File 'lib/couchbase/search_options.rb', line 1281 def size @size end |