Class: Pubid::Bsi::Renderer::Collection

Inherits:
Core::Renderer::Base
  • Object
show all
Defined in:
lib/pubid/bsi/renderer/collection.rb

Instance Method Summary collapse

Instance Method Details

#render_identifier(params) ⇒ Object



3
4
5
# File 'lib/pubid/bsi/renderer/collection.rb', line 3

def render_identifier(params)
  "%{identifiers}%{year}%{supplement}" % params
end

#render_identifiers(identifiers, _opts, _params) ⇒ Object



11
12
13
# File 'lib/pubid/bsi/renderer/collection.rb', line 11

def render_identifiers(identifiers, _opts, _params)
  "#{identifiers.first}/" + identifiers[1..-1].map(&:number).join("/")
end

#render_supplement(supplement, _opts, _params) ⇒ Object



7
8
9
# File 'lib/pubid/bsi/renderer/collection.rb', line 7

def render_supplement(supplement, _opts, _params)
  supplement.to_s
end