Class: Pubid::Nist::Identifiers::Ncstar

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/nist/identifiers/ncstar.rb

Overview

NIST NCSTAR (National Construction Safety Team Act Reports) Examples:

  • "NIST NCSTAR 1-1Cv1" → "NIST NCSTAR 1-1Cv1" (round-trips)
  • "NIST NCSTAR 1-1b" → "NIST NCSTAR 1-1B" (normalizes letter)
  • "NIST NCSTAR 1-1cv1" → "NIST NCSTAR 1-1Cv1" (normalizes letter, keeps v1 format)

Constant Summary collapse

TYPED_STAGES =
[
  Pubid::Components::TypedStage.new(
    abbr: ["NCSTAR", "NIST NCSTAR"],
    stage_code: "published",
    type_code: "ncstar",
  ),
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.typeObject



25
26
27
28
# File 'lib/pubid/nist/identifiers/ncstar.rb', line 25

def type
  { key: :ncstar,
    title: "National Construction Safety Team Act Reports", short: "NCSTAR" }
end

.typed_stagesObject



21
22
23
# File 'lib/pubid/nist/identifiers/ncstar.rb', line 21

def typed_stages
  TYPED_STAGES
end

Instance Method Details

#series_codeObject



31
32
33
# File 'lib/pubid/nist/identifiers/ncstar.rb', line 31

def series_code
  "NCSTAR"
end