Class: Pubid::Iec::Identifier::InterpretationSheet

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/iec/identifier/interpretation_sheet.rb

Constant Summary collapse

TYPED_STAGES =
{
  cdish: {
    abbr: "CDISH",
    name: "Draft circulated as DISH",
    harmonized_stages: %w[30.00 30.20 30.60 30.92 30.98 30.99],
  },
  dish: {
    abbr: "DISH",
    name: "Draft Interpretation Sheet",
    harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
  }
}.freeze
PROJECT_STAGES =
{
  decdish: {
    abbr: "DECDISH",
    name: "DISH at editing check",
    harmonized_stages: %w[50.00],
  },
  prvdish: {
    abbr: "PRVDISH",
    name: "Preparation of RVDISH",
    harmonized_stages: %w[50.60],
  },
  rdish: {
    abbr: "RDISH",
    name: "DISH received and registered",
    harmonized_stages: %w[50.00],
  },
  tdish: {
    abbr: "TDISH",
    name: "Translation of DISH",
    harmonized_stages: %w[50.00],
  },
}.freeze

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 Base

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

Constructor Details

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

Returns a new instance of InterpretationSheet.



42
43
44
45
# File 'lib/pubid/iec/identifier/interpretation_sheet.rb', line 42

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

Class Method Details

.get_renderer_classObject



51
52
53
# File 'lib/pubid/iec/identifier/interpretation_sheet.rb', line 51

def self.get_renderer_class
  Renderer::InterpretationSheet
end

.typeObject



47
48
49
# File 'lib/pubid/iec/identifier/interpretation_sheet.rb', line 47

def self.type
  { key: :ish, title: "Interpretation Sheet", short: "ISH" }
end