Class: Pubid::Cie::Identifier
- Inherits:
-
Identifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Pubid::Cie::Identifier
- Defined in:
- lib/pubid/cie/identifier.rb
Overview
Base Identifier class for CIE.
Inherits the shared Pubid::Identifier contract (format_registry, render,
to_urn, exclude, hash, eql?) while allowing CIE-specific attributes
such as style ("legacy" vs "current" date separator).
Direct Known Subclasses
Class Method Summary collapse
Methods inherited from Identifier
#base_identifier, #eql?, #exclude, from_hash, #hash, #initialize, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #render, #resolve_urn_generator, #root, #to_hash, #to_mr_string, #to_s, #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
.parse(input) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/pubid/cie/identifier.rb', line 13 def self.parse(input) if input.length > Pubid::MAX_INPUT_LENGTH raise ArgumentError, Pubid::INPUT_TOO_LONG_MESSAGE end parsed = Parser.parse(input) builder = Builder.new builder.build(parsed, original_string: input) end |