Class: Search::FacetSelection

Inherits:
Object
  • Object
show all
Includes:
Atrium::ApplicationHelper
Defined in:
app/models/atrium/search/facet_selection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Atrium::ApplicationHelper

#application_name

Constructor Details

#initialize(field_name_hash) ⇒ FacetSelection

Returns a new instance of FacetSelection.



7
8
9
# File 'app/models/atrium/search/facet_selection.rb', line 7

def initialize(field_name_hash)
  @field_name = field_name_hash[:field_name]
end

Instance Attribute Details

#field_nameObject (readonly)

Returns the value of attribute field_name.



5
6
7
# File 'app/models/atrium/search/facet_selection.rb', line 5

def field_name
  @field_name
end

Instance Method Details

#labelObject



11
12
13
# File 'app/models/atrium/search/facet_selection.rb', line 11

def label
  @label ||= Atrium.config.label_for_facet(field_name)
end