Class: Atrium::Search::FacetSelection
- Inherits:
-
Object
- Object
- Atrium::Search::FacetSelection
- Includes:
- Morphine
- Defined in:
- app/models/atrium/search/facet_selection.rb
Instance Attribute Summary collapse
-
#field_name ⇒ Object
readonly
Returns the value of attribute field_name.
Instance Method Summary collapse
-
#initialize(field_name) ⇒ FacetSelection
constructor
A new instance of FacetSelection.
- #label ⇒ Object
Constructor Details
#initialize(field_name) ⇒ FacetSelection
Returns a new instance of FacetSelection.
5 6 7 |
# File 'app/models/atrium/search/facet_selection.rb', line 5 def initialize(field_name) @field_name = field_name end |
Instance Attribute Details
#field_name ⇒ Object (readonly)
Returns the value of attribute field_name.
3 4 5 |
# File 'app/models/atrium/search/facet_selection.rb', line 3 def field_name @field_name end |
Instance Method Details
#label ⇒ Object
9 10 11 |
# File 'app/models/atrium/search/facet_selection.rb', line 9 def label @label ||= facet_configuration[:label] end |