Class: Pubid::Iso::Renderer::UrnAmendment

Inherits:
UrnSupplement
  • Object
show all
Defined in:
lib/pubid/iso/renderer/urn-amendment.rb

Constant Summary collapse

TYPE =
"amd".freeze

Constants inherited from Urn

Pubid::Iso::Renderer::Urn::STAGES

Instance Method Summary collapse

Methods inherited from UrnSupplement

#render_base, #render_number, #render_publisher

Methods inherited from Urn

#prerender, #render, #render_iteration, #render_part, #render_prefix, #render_stage, #render_type, #render_year

Instance Method Details

#render_identifier(params) ⇒ Object



7
8
9
10
# File 'lib/pubid/iso/renderer/urn-amendment.rb', line 7

def render_identifier(params)
  "%{base}%{stage}:amd%{year}%{number}%{edition}" \
  "#{@params[:base].language ? (':' + @params[:base].language) : ''}" % params
end