Class: Pubid::Doi::Identifiers::Resource

Inherits:
Pubid::Doi::Identifier show all
Defined in:
lib/pubid/doi/identifiers/resource.rb

Overview

Concrete DOI identifier type.

Examples:

doi:10.1000/182
10.6028/NIST.2022-04-15.001
https://doi.org/10.1006/jmbi.1998.2354

Constant Summary collapse

TYPED_STAGES =
[
  Pubid::Components::TypedStage.new(
    code: :pubdoi,
    stage_code: :published,
    type_code: :doi,
    abbr: ["DOI"],
    name: "DOI",
    harmonized_stages: [],
  ),
].freeze

Constants inherited from Pubid::Doi::Identifier

Pubid::Doi::Identifier::DOI_TYPE_MAP, Pubid::Doi::Identifier::PUBLISHER

Class Method Summary collapse

Methods inherited from Pubid::Doi::Identifier

parse, #registrar, #to_s

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::Identifier

Class Method Details

.typeObject



24
25
26
# File 'lib/pubid/doi/identifiers/resource.rb', line 24

def self.type
  { key: :doi, web: :doi, title: "DOI", short: "DOI" }
end