Class: CocinaDisplay::Subjects::Subject

Inherits:
Parallel::Parallel show all
Defined in:
lib/cocina_display/subjects/subject.rb

Overview

A Subject in Cocina structured data, possibly in multiple languages.

Instance Attribute Summary

Attributes inherited from Parallel::Parallel

#cocina

Instance Method Summary collapse

Methods inherited from Parallel::Parallel

#has_translation?, #has_transliteration?, #has_vernacular?, #initialize, #main_value, #own_type, #own_typed?, #parallel_values, #primary?, #status, #translated_value, #transliterated_value, #type, #typed?, #vernacular_value

Constructor Details

This class inherits a constructor from CocinaDisplay::Parallel::Parallel

Instance Method Details

#labelString

Label used when displaying the Subject.

Returns:

  • (String)


10
11
12
# File 'lib/cocina_display/subjects/subject.rb', line 10

def label
  display_label || type_label
end