Class: Pubid::Iec::Components::Amendment
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Pubid::Iec::Components::Amendment
- Defined in:
- lib/pubid/iec/components/consolidated_amendment.rb
Overview
Individual Amendment within a consolidated chain Single Responsibility: Represents a single amendment with number and year
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
13 14 15 16 17 |
# File 'lib/pubid/iec/components/consolidated_amendment.rb', line 13 def to_s result = "AMD#{number}" result += ":#{year}" if year result end |