Class: Couchbase::Cluster::SearchFacetResult::NumericRangeFacetResult::NumericRangeFacet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, count, min, max) ⇒ NumericRangeFacet

Returns a new instance of NumericRangeFacet.

[View source]

1404
1405
1406
1407
1408
1409
# File 'lib/couchbase/search_options.rb', line 1404

def initialize(name, count, min, max)
  @name = name
  @count = count
  @min = min
  @max = max
end

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)

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

def count
  @count
end

#maxInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)

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

def max
  @max
end

#minInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)

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

def min
  @min
end

#nameString (readonly)

Returns:

  • (String)

1393
1394
1395
# File 'lib/couchbase/search_options.rb', line 1393

def name
  @name
end