Class: RSolr::Ext::Response::Facets::FacetItem

Inherits:
Object
  • Object
show all
Defined in:
lib/rsolr-ext/response/facets.rb

Overview

represents a facet value; which is a field value and its hit count

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, hits) ⇒ FacetItem

Returns a new instance of FacetItem.



6
7
8
# File 'lib/rsolr-ext/response/facets.rb', line 6

def initialize value, hits
  @value, @hits = value, hits
end

Instance Attribute Details

#hitsObject (readonly)

Returns the value of attribute hits.



5
6
7
# File 'lib/rsolr-ext/response/facets.rb', line 5

def hits
  @hits
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/rsolr-ext/response/facets.rb', line 5

def value
  @value
end