Class: Pubid::Ccsds::UrnParser
- Inherits:
-
UrnParser::Base
- Object
- UrnParser::Base
- Pubid::Ccsds::UrnParser
- Defined in:
- lib/pubid/ccsds/urn_parser.rb
Overview
Parses CCSDS URNs back into identifiers.
UrnGenerator emits: ‘urn:ccsds:code` where the code is the full identifier suffix after “CCSDS ” (e.g., “120.0-G-4”).
Examples:
-
urn:ccsds:120.0-G-4 → CCSDS 120.0-G-4
-
urn:ccsds:100.0-G-1-S → CCSDS 100.0-G-1-S
Instance Method Summary collapse
Methods inherited from UrnParser::Base
Instance Method Details
#parse_urn(urn) ⇒ Object
14 15 16 17 |
# File 'lib/pubid/ccsds/urn_parser.rb', line 14 def parse_urn(urn) body = strip_namespace(urn) flavor_parse("CCSDS #{body}") end |