Class: ResourceGroup

Inherits:
ApplicationRecord show all
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

Instance Method Details

#title_with_default_annotationObject



41
42
43
# File 'app/models/resource_group.rb', line 41

def title_with_default_annotation
  "#{to_s}#{default ? " (default)" : ""}"
end

#to_sString

Returns title of this group

Returns:

  • (String)

    title of this group



37
38
39
# File 'app/models/resource_group.rb', line 37

def to_s
  title
end