Class: Pubid::Bsi::Collection

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/pubid/bsi/model.rb

Overview

Collection model for combined documents (e.g., PAS 2035/2030)

Instance Method Summary collapse

Instance Method Details

#to_sObject



41
42
43
44
45
46
# File 'lib/pubid/bsi/model.rb', line 41

def to_s
  result = "#{type} #{numbers.join('/')}"
  result += ":#{year}" if year
  supplements.each { |s| result += s.to_s }
  result
end