Class: BlacklightFacetExtras::FacetItem
- Inherits:
-
RSolr::Ext::Response::Facets::FacetItem
- Object
- RSolr::Ext::Response::Facets::FacetItem
- BlacklightFacetExtras::FacetItem
- Defined in:
- lib/blacklight_facet_extras/facet_item.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#display_label ⇒ Object
Returns the value of attribute display_label.
Instance Method Summary collapse
-
#initialize(value, hits, opts = {}) ⇒ FacetItem
constructor
A new instance of FacetItem.
Constructor Details
#initialize(value, hits, opts = {}) ⇒ FacetItem
Returns a new instance of FacetItem.
5 6 7 8 |
# File 'lib/blacklight_facet_extras/facet_item.rb', line 5 def initialize value, hits, opts = {} super(value, hits) @display_label = opts[:display_label] || value end |
Instance Attribute Details
#display_label ⇒ Object
Returns the value of attribute display_label.
3 4 5 |
# File 'lib/blacklight_facet_extras/facet_item.rb', line 3 def display_label @display_label end |