Class: Pubid::Xsf::UrnGenerator
- Inherits:
-
UrnGenerator::Base
- Object
- UrnGenerator::Base
- Pubid::Xsf::UrnGenerator
- Defined in:
- lib/pubid/xsf/urn_generator.rb
Overview
Emits urn:xsf:xep:<number> (e.g. urn:xsf:xep:0001). The number keeps its
zero padding so the URN round-trips back to the printed identifier.
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 |
# File 'lib/pubid/xsf/urn_generator.rb', line 8 def generate ["urn", "xsf", "xep", identifier.number.to_s].join(":") end |