Class: Relaton::Bib::Version
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Relaton::Bib::Version
- Defined in:
- lib/relaton/bib/model/version.rb
Instance Method Summary collapse
Instance Method Details
#content ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/relaton/bib/model/version.rb', line 24 def content return @content if @content && !@content.empty? parts = [@draft, @revision_date].compact case parts.size when 2 then "#{@draft} (#{@revision_date})" when 1 then parts.first end end |
#draft ⇒ Object
38 39 40 |
# File 'lib/relaton/bib/model/version.rb', line 38 def draft nil end |
#revision_date ⇒ Object
34 35 36 |
# File 'lib/relaton/bib/model/version.rb', line 34 def revision_date nil end |