Class: Pubid::Ccsds::Identifier::Corrigendum

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

Instance Attribute Summary collapse

Attributes inherited from Base

#book_color, #retired, #series

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

get_parser_class, get_update_codes, transform, transform_supplements

Constructor Details

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

Returns a new instance of Corrigendum.



8
9
10
11
12
13
14
15
# File 'lib/pubid/ccsds/identifier/corrigendum.rb', line 8

def initialize(base: nil, **opts)
  super(**opts)
  if base.is_a?(Hash)
    @base = Identifier.create(**base)
  else
    @base = base
  end
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



6
7
8
# File 'lib/pubid/ccsds/identifier/corrigendum.rb', line 6

def base
  @base
end

Class Method Details

.get_renderer_classObject



21
22
23
# File 'lib/pubid/ccsds/identifier/corrigendum.rb', line 21

def self.get_renderer_class
  Renderer::Corrigendum
end

.typeObject



17
18
19
# File 'lib/pubid/ccsds/identifier/corrigendum.rb', line 17

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