Class: Pubid::Bsi::Supplement
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Pubid::Bsi::Supplement
- Defined in:
- lib/pubid/bsi/model.rb
Overview
Supplement model for amendments and corrigenda
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
12 13 14 15 16 17 |
# File 'lib/pubid/bsi/model.rb', line 12 def to_s prefix = type == "amendment" ? "A" : "C" result = "+#{prefix}#{number}" result += ":#{year}" if year result end |