Class: Pubid::Gost::Identifiers::ForeignReference
- Inherits:
-
Pubid::Gost::Identifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Pubid::Gost::Identifier
- Pubid::Gost::Identifiers::ForeignReference
- Defined in:
- lib/pubid/gost/identifiers/foreign_reference.rb
Overview
Foreign reference captured verbatim when no registered flavor can parse the adopted identifier (e.g. "OECD 460:2017", "UNECE STANDARD FFV-18:2011"). It preserves the raw surface form for round-trip rendering without modelling the foreign standard's internal structure. Quacks like Pubid::Identifier for rendering and serialization.
Constant Summary
Constants inherited from Pubid::Gost::Identifier
Pubid::Gost::Identifier::GOST_TYPE_MAP
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Pubid::Gost::Identifier
Methods inherited from Identifier
apply_mappings, #base, #base_document, concrete_class_for, #dated_version_of?, #draft_of?, #drop_supplements, #edition_of?, #eql?, #exclude, from_hash, #has_supplement?, #hash, #includes?, #initialize, #matches?, #mr_all_parts, #mr_edition, #mr_languages, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_subpart, #mr_supplement_suffix, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #related_to?, #render, #resolve_urn_generator, #root, #sibling_of?, #supplement_of?, #to_hash, #to_mr_string, #to_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year
Constructor Details
This class inherits a constructor from Pubid::Identifier
Class Method Details
.type ⇒ Object
15 16 17 |
# File 'lib/pubid/gost/identifiers/foreign_reference.rb', line 15 def self.type { key: :"foreign-reference", title: "Foreign Reference", short: nil } end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/pubid/gost/identifiers/foreign_reference.rb', line 19 def to_s raw.to_s end |