Class: Couchbase::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.



1511
1512
1513
1514
1515
1516
# File 'lib/couchbase/search_options.rb', line 1511

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

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)


1503
1504
1505
# File 'lib/couchbase/search_options.rb', line 1503

def count
  @count
end

#maxInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


1509
1510
1511
# File 'lib/couchbase/search_options.rb', line 1509

def max
  @max
end

#minInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


1506
1507
1508
# File 'lib/couchbase/search_options.rb', line 1506

def min
  @min
end

#nameString (readonly)

Returns:

  • (String)


1500
1501
1502
# File 'lib/couchbase/search_options.rb', line 1500

def name
  @name
end