Class: Pubid::Nist::Identifiers::CommercialStandard

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

Overview

NBS/NIST CS (Commercial Standard) Distinct from CS-E (emergency) and CSM (monthly) Examples:

  • "NBS CS 102" - Basic commercial standard
  • "NBS CS 102E-42" - With letter suffix and number
  • "CS 190-58" - With year

Constant Summary collapse

TYPED_STAGES =
[
  Pubid::Components::TypedStage.new(
    abbr: ["CS", "NBS CS"],
    stage_code: "published",
    type_code: "cs",
  ),
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.typeObject



26
27
28
29
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 26

def type
  { key: :cs,
  web: :commercial_standard, title: "Commercial Standard", short: "CS" }
end

.typed_stagesObject



22
23
24
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 22

def typed_stages
  TYPED_STAGES
end

Instance Method Details

#default_publisherObject



32
33
34
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 32

def default_publisher
  "NBS"
end

#series_codeObject



36
37
38
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 36

def series_code
  "CS"
end