Class: Pubid::Nist::Identifiers::GrantContractorReport

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

Overview

NIST Grant/Contractor Report (GCR) Examples:

  • “NIST GCR 17-917-45” - Basic 3-part number

  • “NIST GCR 21-917-48v3B” - With volume and letter suffix

Constant Summary collapse

TYPED_STAGES =
[
  Pubid::Components::TypedStage.new(
    abbr: ["GCR", "NIST GCR"],
    stage_code: "published",
    type_code: "gcr",
  ),
].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

.typeObject



24
25
26
# File 'lib/pubid/nist/identifiers/grant_contractor_report.rb', line 24

def type
  { key: :gcr, title: "NIST Grant/Contractor Report", short: "GCR" }
end

.typed_stagesObject



20
21
22
# File 'lib/pubid/nist/identifiers/grant_contractor_report.rb', line 20

def typed_stages
  TYPED_STAGES
end

Instance Method Details

#series_codeObject



29
30
31
# File 'lib/pubid/nist/identifiers/grant_contractor_report.rb', line 29

def series_code
  "GCR"
end