Class: Pubid::Nist::Identifiers::CommercialStandard
- Inherits:
-
Pubid::Nist::Identifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Pubid::Nist::Identifier
- 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
Constants inherited from Pubid::Nist::Identifier
Pubid::Nist::Identifier::COMPACT_DROP_ATTRS, Pubid::Nist::Identifier::COMPACT_FLAT_CODES, Pubid::Nist::Identifier::COMPACT_FLAT_VALUES, Pubid::Nist::Identifier::EQUALITY_IGNORED_ATTRS
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Pubid::Nist::Identifier
#==, #append_mr_components, #append_short_components, #edition_greater?, expand_code, expand_compact_hash, #extract_edition_number, from_hash, #hash, #initialize, #language, #matches?, #merge, parse, #publisher_abbreviated_name, #publisher_full_name, #render, #revision, #series_abbreviated_name, #series_full_name, #supplement_short, #to_abbreviated_style, #to_full_style, #to_hash, #to_mr_string, #to_mr_style, #to_s, #to_short_style, #to_slug, #translation, #weight
Methods inherited from Identifier
apply_mappings, #base, #base_document, concrete_class_for, #dated_version_of?, #draft_of?, #drop_supplements, #edition_of?, #eql?, #exclude, from_hash, #has_supplement?, #hash, #includes?, #initialize, #matches?, #mr_all_parts, #mr_edition, #mr_languages, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_subpart, #mr_supplement_suffix, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #related_to?, #render, #resolve_urn_generator, #root, #sibling_of?, #supplement_of?, #to_hash, #to_mr_string, #to_s, #to_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year
Constructor Details
This class inherits a constructor from Pubid::Nist::Identifier
Class Method Details
.type ⇒ Object
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_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
32 33 34 |
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 32 def default_publisher "NBS" end |
#series_code ⇒ Object
36 37 38 |
# File 'lib/pubid/nist/identifiers/commercial_standard.rb', line 36 def series_code "CS" end |