Class: Pubid::Cen::Identifier::Corrigendum

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/cen/identifier/corrigendum.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#adopted, #supplements

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

get_parser_class, get_transformer_class, transform, transform_supplement

Constructor Details

#initialize(base: nil, **opts) ⇒ Corrigendum

Returns a new instance of Corrigendum.



7
8
9
10
# File 'lib/pubid/cen/identifier/corrigendum.rb', line 7

def initialize(base: nil, **opts)
  super(**opts)
  @base = base
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



5
6
7
# File 'lib/pubid/cen/identifier/corrigendum.rb', line 5

def base
  @base
end

Class Method Details

.get_renderer_classObject



16
17
18
# File 'lib/pubid/cen/identifier/corrigendum.rb', line 16

def self.get_renderer_class
  Renderer::Corrigendum
end

.typeObject



12
13
14
# File 'lib/pubid/cen/identifier/corrigendum.rb', line 12

def self.type
  { key: :cor, title: "corrigendum" }
end