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.



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

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

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)


1531
1532
1533
# File 'lib/couchbase/search_options.rb', line 1531

def count
  @count
end

#maxInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


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

def max
  @max
end

#minInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


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

def min
  @min
end

#nameString (readonly)

Returns:

  • (String)


1528
1529
1530
# File 'lib/couchbase/search_options.rb', line 1528

def name
  @name
end