Module: Pubid::Plateau::Identifier

Defined in:
lib/pubid/plateau/identifier.rb

Overview

Plateau factory entry point. ‘.parse` lives on `Pubid::Plateau` itself for historical reasons; this module hosts `.create` for API consistency with the other pubid flavors.

NOTE: intentionally does NOT ‘extend Pubid::IdentifierFacade`. PLATEAU’s ‘to_hash` currently raises (publisher stored as a String, not a Publisher component), so enabling the facade’s identity check would route PLATEAU ids through a consumer’s ‘to_hash` (e.g. relaton-index#save) and crash. Re-enable once PLATEAU serialization round-trips cleanly. See identifier_facade.rb.

Class Method Summary collapse

Class Method Details

.parse(identifier) ⇒ Object

Delegate to the flavor module so callers can use ‘Pubid::Plateau::Identifier.parse` consistently with other flavors.



18
19
20
# File 'lib/pubid/plateau/identifier.rb', line 18

def self.parse(identifier)
  Pubid::Plateau.parse(identifier)
end