Class: BlacklightFacetExtras::Pivot::FacetItem
- Inherits:
-
RSolr::Ext::Response::Facets::FacetItem
- Object
- RSolr::Ext::Response::Facets::FacetItem
- BlacklightFacetExtras::Pivot::FacetItem
- Defined in:
- lib/blacklight_facet_extras/pivot.rb
Instance Attribute Summary collapse
-
#display_label ⇒ Object
Returns the value of attribute display_label.
-
#facets ⇒ Object
Returns the value of attribute facets.
-
#field ⇒ Object
Returns the value of attribute field.
-
#parent ⇒ Object
Returns the value of attribute parent.
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.
10 11 12 13 14 15 16 |
# File 'lib/blacklight_facet_extras/pivot.rb', line 10 def initialize value, hits, opts = {} super(value, hits) @display_label = opts[:display_label] @field = opts[:field] @parent = opts[:parent] @facets = opts[:facets] end |
Instance Attribute Details
#display_label ⇒ Object
Returns the value of attribute display_label.
5 6 7 |
# File 'lib/blacklight_facet_extras/pivot.rb', line 5 def display_label @display_label end |
#facets ⇒ Object
Returns the value of attribute facets.
6 7 8 |
# File 'lib/blacklight_facet_extras/pivot.rb', line 6 def facets @facets end |
#field ⇒ Object
Returns the value of attribute field.
7 8 9 |
# File 'lib/blacklight_facet_extras/pivot.rb', line 7 def field @field end |
#parent ⇒ Object
Returns the value of attribute parent.
8 9 10 |
# File 'lib/blacklight_facet_extras/pivot.rb', line 8 def parent @parent end |