Class: ResourceGroup
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ResourceGroup
- Defined in:
- app/models/resource_group.rb
Overview
Represents the situation in which a subject is being considered. Determines what strategy we use to present a description of a subject. Examples of resource_groups include Web, Exhibitions, Poetry, Digital Interactive, Mobile, Audio Tour
Constant Summary collapse
- DEFAULT_TITLE =
"Uncategorized".freeze
Instance Method Summary collapse
- #title_with_default_annotation ⇒ Object
-
#to_s ⇒ String
Title of this group.
Instance Method Details
#title_with_default_annotation ⇒ Object
41 42 43 |
# File 'app/models/resource_group.rb', line 41 def title_with_default_annotation "#{to_s}#{default ? " (default)" : ""}" end |
#to_s ⇒ String
Returns title of this group
37 38 39 |
# File 'app/models/resource_group.rb', line 37 def to_s title end |