Class: RSolrExt::Response::Select::Facets::FacetValue

Inherits:
Object
  • Object
show all
Defined in:
lib/rsolr_ext/response/select.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) ⇒ FacetValue

Returns a new instance of FacetValue.



47
48
49
# File 'lib/rsolr_ext/response/select.rb', line 47

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

Instance Attribute Details

#hitsObject (readonly)

Returns the value of attribute hits.



46
47
48
# File 'lib/rsolr_ext/response/select.rb', line 46

def hits
  @hits
end

#valueObject (readonly)

Returns the value of attribute value.



46
47
48
# File 'lib/rsolr_ext/response/select.rb', line 46

def value
  @value
end