Class: SeriesStatement

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/series_statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#selectedObject

Returns the value of attribute selected.



21
22
23
# File 'app/models/series_statement.rb', line 21

def selected
  @selected
end

Instance Method Details

#create_root_series_statementObject



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

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

#titlesObject



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

def titles
  [
    original_title,
    title_transcription
  ]
end