Class: Pubid::Itu::Identifiers::SpecialPublication
- Defined in:
- lib/pubid/itu/identifiers/special_publication.rb
Overview
ITU Special Publication — currently models the Operational Bulletin (OB). OB is a cross-bureau publication (no sector) rendered as "ITU OB No. number" with optional date.
Pattern: "ITU OB No. 1283 (01/2024)"
Instance Method Summary collapse
Instance Method Details
#render_base(**_opts) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/pubid/itu/identifiers/special_publication.rb', line 12 def render_base(**_opts) number = code&.number result = "#{publisher} #{series} No. #{number}" if date result += if date.month " (#{date.month.to_s.rjust(2, '0')}/#{date.year})" else " (#{date.year})" end end result end |