Class: Pubid::Tgpp::UrnGenerator
- Inherits:
-
UrnGenerator::Base
- Object
- UrnGenerator::Base
- Pubid::Tgpp::UrnGenerator
- Defined in:
- lib/pubid/tgpp/urn_generator.rb
Overview
Emits urn:3gpp:<type>:<code>:<release>:<version>, e.g.
urn:3gpp:ts:23.207:REL-4:2.0.0. <code> is number+suffix+parts.
Instance Attribute Summary
Attributes inherited from UrnGenerator::Base
Instance Method Summary collapse
Methods inherited from UrnGenerator::Base
#initialize, #maybe, #urn_edition, #urn_language, #urn_namespace, #urn_number, #urn_part, #urn_publisher, #urn_subpart, #urn_type, #urn_year
Constructor Details
This class inherits a constructor from Pubid::UrnGenerator::Base
Instance Method Details
#generate ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pubid/tgpp/urn_generator.rb', line 8 def generate [ "urn", "3gpp", identifier.type_prefix.downcase, identifier.code, identifier.release, identifier.version, ].join(":") end |