Class: Atrium::Showcase::FeaturedSelection

Inherits:
Object
  • Object
show all
Includes:
ApplicationHelper
Defined in:
app/models/atrium/showcase/featured_selection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ApplicationHelper

#application_name

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_idObject (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

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'app/models/atrium/showcase/featured_selection.rb', line 5

def title
  @title
end