Class: SeriesStatement

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/series_statement.rb,
app/models2/series_statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#selectedObject

Returns the value of attribute selected.



23
24
25
# File 'app/models/series_statement.rb', line 23

def selected
  @selected
end

Instance Method Details

#create_root_series_statementObject



40
41
42
43
44
45
46
# File 'app/models/series_statement.rb', line 40

def create_root_series_statement
  if series_master?
    self.root_manifestation = manifestation
  else
    self.root_manifestation = nil
  end
end

#reindexObject



28
29
30
31
# File 'app/models/series_statement.rb', line 28

def reindex
  manifestation.try(:index)
  root_manifestation.try(:index)
end

#titlesObject



33
34
35
36
37
38
# File 'app/models/series_statement.rb', line 33

def titles
  [
    original_title,
    title_transcription
  ]
end