Class: Pubid::Etsi::Identifier
- Inherits:
-
Object
- Object
- Pubid::Etsi::Identifier
- Defined in:
- lib/pubid/etsi/identifier.rb
Class Method Summary collapse
-
.create(**opts) ⇒ Object
Factory mirroring pubid 1.x’s ‘Pubid::Etsi::Identifier.create` API.
- .parse(identifier) ⇒ Object
Class Method Details
.create(**opts) ⇒ Object
Factory mirroring pubid 1.x’s ‘Pubid::Etsi::Identifier.create` API.
ETSI’s ‘type` kwarg (EN, ES, EG, TS, TR, GS, GR, GTS, …) is data stored on the identifier instance, not a class-dispatch key — all ETSI standards share the Pubid::Etsi::Identifiers::EtsiStandard class.
21 22 23 |
# File 'lib/pubid/etsi/identifier.rb', line 21 def self.create(**opts) Identifiers::EtsiStandard.new(**coerce_create_attrs(opts)) end |