Class: Couchbase::Cluster::SearchFacet::SearchFacetTerm

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field) {|_self| ... } ⇒ SearchFacetTerm

Returns a new instance of SearchFacetTerm.

Parameters:

  • field (String)

    name of the field

Yields:

  • (_self)

Yield Parameters:



1138
1139
1140
1141
# File 'lib/couchbase/search_options.rb', line 1138

def initialize(field)
  @field = field
  yield self if block_given?
end

Instance Attribute Details

#fieldString (readonly)

Returns:

  • (String)


1132
1133
1134
# File 'lib/couchbase/search_options.rb', line 1132

def field
  @field
end

#sizeInteger

Returns:

  • (Integer)


1135
1136
1137
# File 'lib/couchbase/search_options.rb', line 1135

def size
  @size
end