Class: Pubid::Cen::Identifier::Amendment

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/cen/identifier/amendment.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) ⇒ Amendment

Returns a new instance of Amendment.



7
8
9
10
# File 'lib/pubid/cen/identifier/amendment.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/amendment.rb', line 5

def base
  @base
end

Class Method Details

.get_renderer_classObject



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

def self.get_renderer_class
  Renderer::Amendment
end

.typeObject



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

def self.type
  { key: :amd, title: "Amendment" }
end