Class: Pubid::Nist::Identifiers::CommercialStandard
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Identifier
- Base
- Pubid::Nist::Identifiers::CommercialStandard
- 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
Methods inherited from Base
#edition_greater?, #extract_edition_number, #initialize, #language, #merge, #publisher, #revision, #to_s, #translation, #weight
Methods inherited from Identifier
#base_identifier, #eql?, #exclude, #hash, #initialize, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, #render, #resolve_urn_generator, #root, #to_mr_string, #to_s, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code
Constructor Details
This class inherits a constructor from Pubid::Nist::Identifiers::Base
Class Method Details
.type ⇒ Object
26 27 28 |
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 26 def type { key: :cs, title: "Commercial Standard", short: "CS" } end |
.typed_stages ⇒ Object
22 23 24 |
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 22 def typed_stages TYPED_STAGES end |
Instance Method Details
#default_publisher ⇒ Object
31 32 33 |
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 31 def default_publisher "NBS" end |
#series_code ⇒ Object
35 36 37 |
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 35 def series_code "CS" end |