Class: Sunspot::FacetRow

Inherits:
Object
  • Object
show all
Defined in:
lib/sunspot/facet_row.rb

Overview

This class encapsulates a facet row (value) for a facet.

Direct Known Subclasses

InstantiatedFacetRow

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, count) ⇒ FacetRow

:nodoc:



8
9
10
# File 'lib/sunspot/facet_row.rb', line 8

def initialize(value, count) #:nodoc:
  @value, @count = value, count
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



6
7
8
# File 'lib/sunspot/facet_row.rb', line 6

def count
  @count
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/sunspot/facet_row.rb', line 6

def value
  @value
end