Class: Pubid::Jis::Identifier::Amendment

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/jis/identifier/amendment.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#all_parts, #series

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #all_parts?, get_parser_class, #to_s, transform, transform_explanation, transform_supplements

Constructor Details

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

Returns a new instance of Amendment.



10
11
12
13
# File 'lib/pubid/jis/identifier/amendment.rb', line 10

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

Instance Attribute Details

#baseObject

Returns the value of attribute base.



6
7
8
# File 'lib/pubid/jis/identifier/amendment.rb', line 6

def base
  @base
end

Class Method Details

.get_renderer_classObject



19
20
21
# File 'lib/pubid/jis/identifier/amendment.rb', line 19

def self.get_renderer_class
  Renderer::Amendment
end

.typeObject



15
16
17
# File 'lib/pubid/jis/identifier/amendment.rb', line 15

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