Class: Atrium::Showcase::FeaturedSelection
- Inherits:
-
Object
- Object
- Atrium::Showcase::FeaturedSelection
- Includes:
- ApplicationHelper
- Defined in:
- app/models/atrium/showcase/featured_selection.rb
Instance Attribute Summary collapse
-
#solr_id ⇒ Object
readonly
Returns the value of attribute solr_id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(selected_item_hash) ⇒ FeaturedSelection
constructor
A new instance of FeaturedSelection.
Methods included from ApplicationHelper
Constructor Details
#initialize(selected_item_hash) ⇒ FeaturedSelection
Returns a new instance of FeaturedSelection.
7 8 9 10 |
# File 'app/models/atrium/showcase/featured_selection.rb', line 7 def initialize(selected_item_hash) @solr_id = selected_item_hash[:id] @title = selected_item_hash[:title] end |
Instance Attribute Details
#solr_id ⇒ Object (readonly)
Returns the value of attribute solr_id.
5 6 7 |
# File 'app/models/atrium/showcase/featured_selection.rb', line 5 def solr_id @solr_id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'app/models/atrium/showcase/featured_selection.rb', line 5 def title @title end |