Class: Pubid::Jcgm::UrnGenerator

Inherits:
UrnGenerator::Base show all
Defined in:
lib/pubid/jcgm/urn_generator.rb

Instance Attribute Summary

Attributes inherited from UrnGenerator::Base

#identifier

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

#generateObject



6
7
8
9
10
11
12
# File 'lib/pubid/jcgm/urn_generator.rb', line 6

def generate
  if identifier.is_a?(SupplementIdentifier)
    generate_supplement_urn
  else
    generate_base_urn
  end
end