Class: Pubid::Iso::Identifier::Corrigendum
- Inherits:
-
Supplement
- Object
- Core::Identifier::Base
- Base
- Supplement
- Pubid::Iso::Identifier::Corrigendum
- Defined in:
- lib/pubid/iso/identifier/corrigendum.rb
Constant Summary collapse
- TYPED_STAGES =
{ dcor: { abbr: "DCOR", legacy_abbr: %w[DCor], name: "Draft Corrigendum", harmonized_stages: %w[40.00 40.20 40.60 40.92 40.93 40.98 40.99], }, fdcor: { abbr: "FDCOR", legacy_abbr: %w[FDCor FCOR], name: "Final Draft Corrigendum", harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99], }, }.freeze
Instance Attribute Summary
Attributes inherited from Base
#addendum, #base, #dirtype, #iteration, #joint_document, #jtc_dir, #month, #scnumber, #sctype, #stage, #supplements, #tcnumber, #tctype, #wgnumber, #wgtype
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Supplement
#base_has_edition?, #initialize
Methods inherited from Base
get_amendment_class, get_corrigendum_class, get_identifier, get_parser_class, get_transformer_class, get_update_codes, #initialize, #render_joint_document, #resolve_format, #root, supplement_by_type, supplements_has_type?, #to_s, transform, transform_supplements, type_match?
Constructor Details
This class inherits a constructor from Pubid::Iso::Identifier::Supplement
Class Method Details
.get_renderer_class ⇒ Object
28 29 30 |
# File 'lib/pubid/iso/identifier/corrigendum.rb', line 28 def self.get_renderer_class Renderer::Corrigendum end |
.type ⇒ Object
24 25 26 |
# File 'lib/pubid/iso/identifier/corrigendum.rb', line 24 def self.type { key: :cor, title: "Corrigendum", short: "COR" } end |
Instance Method Details
#urn ⇒ Object
32 33 34 35 36 |
# File 'lib/pubid/iso/identifier/corrigendum.rb', line 32 def urn raise Errors::NoEditionError, "Base document must have edition" unless base_has_edition? Renderer::UrnCorrigendum.new(to_h(deep: false)).render end |