Class: Pubid::Ccsds::Identifier::Corrigendum
- Inherits:
-
Base
- Object
- Pubid::Core::Identifier::Base
- Base
- Pubid::Ccsds::Identifier::Corrigendum
- Defined in:
- lib/pubid/ccsds/identifier/corrigendum.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
Attributes inherited from Base
#book_color, #retired, #series
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(base: nil, **opts) ⇒ Corrigendum
constructor
A new instance of Corrigendum.
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
#base ⇒ Object
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_class ⇒ Object
21 22 23 |
# File 'lib/pubid/ccsds/identifier/corrigendum.rb', line 21 def self.get_renderer_class Renderer::Corrigendum end |
.type ⇒ Object
17 18 19 |
# File 'lib/pubid/ccsds/identifier/corrigendum.rb', line 17 def self.type { key: :corrigendum, title: "Corrigendum", short: "corrigendum" } end |