Class: Pubid::Ietf::Identifiers::InternetDraft

Inherits:
Pubid::Ietf::Identifier show all
Defined in:
lib/pubid/ietf/identifiers/internet_draft.rb

Overview

An Internet-Draft, e.g. "draft-giuliano-treedn-02" (versioned) or "draft-giuliano-treedn" (the unversioned "latest" sibling). The full slug (including the leading "draft-") is stored in name; the optional trailing two-digit version in version.

Constant Summary collapse

TYPED_STAGES =
[
  Pubid::Components::TypedStage.new(
    code: :internet_draft,
    stage_code: :draft,
    type_code: :internet_draft,
    abbr: ["I-D", "Internet-Draft"],
    name: "Internet-Draft",
    harmonized_stages: [],
  ),
].freeze

Constants inherited from Pubid::Ietf::Identifier

Pubid::Ietf::Identifier::IETF_TYPE_MAP, Pubid::Ietf::Identifier::PUBLISHER

Class Method Summary collapse

Methods inherited from Pubid::Ietf::Identifier

parse, #to_s

Methods inherited from Pubid::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



22
23
24
25
# File 'lib/pubid/ietf/identifiers/internet_draft.rb', line 22

def self.type
  { key: :internet_draft, web: :internet_draft,
    title: "Internet-Draft", short: "I-D" }
end