Class: Pubid::Sae::Identifier
- Inherits:
-
Object
- Object
- Pubid::Sae::Identifier
- Defined in:
- lib/pubid/sae/identifier.rb
Class Method Summary collapse
-
.create(**opts) ⇒ Object
Factory that builds a SAE identifier from a hash of primitives.
- .parse(input) ⇒ Object
Class Method Details
.create(**opts) ⇒ Object
Factory that builds a SAE identifier from a hash of primitives. SAE has only one identifier class (Pubid::Sae::Identifiers::Base); ‘:type` is data (the document-type abbreviation: “J”, “AS”, “ARP”, “AMS”, “AIR”, “MA”) rather than a class-dispatch key.
17 18 19 |
# File 'lib/pubid/sae/identifier.rb', line 17 def self.create(**opts) Identifiers::Base.new(**coerce_create_attrs(opts)) end |