Class: Pubid::Astm::Identifiers::IsoDualPublished
- Inherits:
-
Standard
- Object
- Identifier
- Pubid::Astm::Identifier
- SingleIdentifier
- Base
- Standard
- Pubid::Astm::Identifiers::IsoDualPublished
- Defined in:
- lib/pubid/astm/identifiers/iso_dual_published.rb
Overview
IsoDualPublished represents ASTM standards that are dual-published with ISO
SEMANTIC NOTE: ISO/ASTM dual-published standards (typically 5xxxx series)
- ASTM version: ASTM 52303-24e1 (e1 = edition 1, not "E" prefix)
- ISO version: ISO/ASTM 52303:2024
Distinguishing feature: Starts with digit (typically 5xxxx series) These are ASTM's version of standards jointly developed with ISO
Instance Method Summary collapse
-
#to_iso_identifier ⇒ Pubid::Iso::Identifier
Convert to ISO/ASTM dual-published format.
Methods inherited from Base
Methods inherited from SingleIdentifier
Methods inherited from Pubid::Astm::Identifier
Instance Method Details
#to_iso_identifier ⇒ Pubid::Iso::Identifier
Convert to ISO/ASTM dual-published format. Uses Pubid::Iso.build so this flavor never reaches into ISO's internal class hierarchy.
37 38 39 40 41 42 43 44 45 |
# File 'lib/pubid/astm/identifiers/iso_dual_published.rb', line 37 def to_iso_identifier Pubid::Iso.build( type: :is, publisher: "ISO", copublishers: ["ASTM"], number: code&.number, year: year&.to_s, ) end |