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.



1544
1545
1546
1547
1548
1549
# File 'lib/couchbase/search_options.rb', line 1544

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

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)


1536
1537
1538
# File 'lib/couchbase/search_options.rb', line 1536

def count
  @count
end

#maxInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


1542
1543
1544
# File 'lib/couchbase/search_options.rb', line 1542

def max
  @max
end

#minInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


1539
1540
1541
# File 'lib/couchbase/search_options.rb', line 1539

def min
  @min
end

#nameString (readonly)

Returns:

  • (String)


1533
1534
1535
# File 'lib/couchbase/search_options.rb', line 1533

def name
  @name
end