Class: BlacklightFacetExtras::Pivot::FacetItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_labelObject

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

#facetsObject

Returns the value of attribute facets.



6
7
8
# File 'lib/blacklight_facet_extras/pivot.rb', line 6

def facets
  @facets
end

#fieldObject

Returns the value of attribute field.



7
8
9
# File 'lib/blacklight_facet_extras/pivot.rb', line 7

def field
  @field
end

#parentObject

Returns the value of attribute parent.



8
9
10
# File 'lib/blacklight_facet_extras/pivot.rb', line 8

def parent
  @parent
end