Class: Pubid::Iana::Identifiers::Registry

Inherits:
Pubid::Iana::Identifier show all
Defined in:
lib/pubid/iana/identifiers/registry.rb

Overview

The sole IANA identifier type: a protocol registry (optionally with a sub-registry). Its class name yields the polymorphic _type tag "pubid:iana:registry".

Examples:

IANA _6lowpan-parameters
IANA _6lowpan-parameters/lowpan_nhc

Constant Summary collapse

TYPED_STAGES =

IANA registries carry no revision/stage lifecycle; a single published typed stage keeps parity with the other flavors' type registries.

[
  Pubid::Components::TypedStage.new(
    code: :pubiana,
    stage_code: :published,
    type_code: :iana,
    abbr: ["IANA"],
    name: "IANA Registry",
    harmonized_stages: [],
  ),
].freeze

Constants inherited from Pubid::Iana::Identifier

Pubid::Iana::Identifier::IANA_TYPE_MAP, Pubid::Iana::Identifier::PUBLISHER

Instance Attribute Summary

Attributes inherited from Pubid::Iana::Identifier

#with_publisher

Class Method Summary collapse

Methods inherited from Pubid::Iana::Identifier

#code, 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



27
28
29
# File 'lib/pubid/iana/identifiers/registry.rb', line 27

def self.type
  { key: :iana, web: :registry, title: "IANA Registry", short: "IANA" }
end