Class: BlacklightFacetExtras::FacetItem

Inherits:
RSolr::Ext::Response::Facets::FacetItem
  • Object
show all
Defined in:
lib/blacklight_facet_extras/facet_item.rb

Direct Known Subclasses

Range::FacetItem

Instance Attribute Summary collapse

Instance Method Summary collapse

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_labelObject

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