Class: Pubid::Iec::Identifier::PubliclyAvailableSpecification

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

Constant Summary collapse

TYPED_STAGES =
{
  cdpas: {
    abbr: "CDPAS",
    name: "Draft circulated as DPAS",
    harmonized_stages: %w[50.20],
  },
  dpas: {
    abbr: "DPAS",
    name: "Draft Publicly Available Specification",
    harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
  }
}.freeze
PROJECT_STAGES =
{
  PRVDPAS: {
    abbr: "PRVDPAS",
    name: "Preparation of RVDPAS",
    harmonized_stages: %w[50.60],
  }
}.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_renderer_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, #urn

Constructor Details

This class inherits a constructor from Pubid::Iec::Base

Class Method Details

.typeObject



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

def self.type
  { key: :pas, title: "Publicly Available Specification", short: "PAS" }
end

Instance Method Details

#to_h(deep: false) ⇒ Object



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

def to_h(deep: false)
  super.merge(type: "PAS")
end