Class: Pubid::Etsi::Scheme
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Pubid::Etsi::Scheme
- Defined in:
- lib/pubid/etsi/scheme.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/pubid/etsi/scheme.rb', line 16 def to_s result = "ETSI #{type} #{number}" # Add parts part.each do |p| result += "-#{p}" end # Add amendment or corrigendum result += "/A#{amendment}" if amendment result += "/C#{corrigendum}" if corrigendum # Add version or edition if version result += " V#{version}" elsif edition result += " ed.#{edition}" end # Add date (only if present) result += " (#{date})" if date result end |