Class: Pubid::Gb::Identifiers::Standard

Inherits:
Pubid::Gb::Identifier show all
Defined in:
lib/pubid/gb/identifiers/standard.rb

Overview

The default Chinese Standard identifier type. The class name yields the polymorphic _type tag "pubid:gb:standard".

Examples:

GB/T 20223-2006
GB/T 5606.1-2004
GB/T 5606 (all parts)
JB/T 13368-2018
T/GZAEPI 001—2018

Constant Summary collapse

TYPED_STAGES =
[
  Pubid::Components::TypedStage.new(
    code: :pubgb,
    stage_code: :published,
    type_code: :gb,
    abbr: ["GB"],
    name: "Chinese Standard",
    harmonized_stages: %w[60.00 60.60],
  ),
].freeze

Constants inherited from Pubid::Gb::Identifier

Pubid::Gb::Identifier::GB_TYPE_MAP, Pubid::Gb::Identifier::PUBLISHER

Class Method Summary collapse

Methods inherited from Pubid::Gb::Identifier

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



27
28
29
30
# File 'lib/pubid/gb/identifiers/standard.rb', line 27

def self.type
  { key: :gb, web: :chinese_standard, title: "Chinese Standard",
    short: "GB" }
end