Class: Pubid::Iec::Identifier::Amendment

Inherits:
Supplement
  • Object
show all
Defined in:
lib/pubid/iec/identifier/amendment.rb

Constant Summary collapse

TYPED_STAGES =
{
  cdam: {
    abbr: "CDAM",
    name: "Committee Draft Ammendment",
    harmonized_stages: %w[30.00 30.20 30.60 30.92 30.98 30.99],
  },
  dcor: {
    abbr: "DAM",
    name: "Draft Ammendment",
    harmonized_stages: %w[40.00 40.20 40.60 40.92 40.98 40.99],
  },
  fdcor: {
    abbr: "FDAM",
    name: "Final Draft Ammendment",
    harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
  }
}.freeze

Constants inherited from Base

Base::PROJECT_STAGES

Instance Attribute Summary

Attributes inherited from Base

#conjuction_part, #database, #day, #decision_sheet, #fragment, #month, #part_version, #sheet, #test_type, #trf_publisher, #trf_series, #trf_version, #vap, #version

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Supplement

#<=>, #initialize

Methods inherited from Base

get_amendment_class, get_corrigendum_class, get_identifier, get_parser_class, get_transformer_class, get_update_codes, has_project_stage?, has_type?, #initialize, #lookup_typed_stage, #renderer_data, resolve_project_stage, #to_s, transform, transform_hash

Constructor Details

This class inherits a constructor from Pubid::Iec::Identifier::Supplement

Class Method Details

.get_renderer_classObject



31
32
33
# File 'lib/pubid/iec/identifier/amendment.rb', line 31

def self.get_renderer_class
  Renderer::Amendment
end

.typeObject



27
28
29
# File 'lib/pubid/iec/identifier/amendment.rb', line 27

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

Instance Method Details

#urnObject



35
36
37
# File 'lib/pubid/iec/identifier/amendment.rb', line 35

def urn
  Renderer::UrnAmendment.new(renderer_data).render
end