Class: Pubid::Itu::Identifiers::SpecialPublication
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Base
- 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)”
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#==, #base_hash, #initialize, normalize_to_s_opts, #publisher, #render_language_suffix, #to_s
Methods inherited from Pubid::Identifier
#base_identifier, #eql?, #exclude, #hash, #initialize, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, #render, #resolve_urn_generator, #root, #to_mr_string, #to_s, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code
Constructor Details
This class inherits a constructor from Pubid::Itu::Identifiers::Base
Instance Method Details
#render_base(**_opts) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/pubid/itu/identifiers/special_publication.rb', line 14 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 |