Class: Pubid::Ieee::Identifiers::ConformanceIdentifier

Inherits:
SupplementIdentifier show all
Defined in:
lib/pubid/ieee/identifiers/conformance_identifier.rb

Overview

Conformance identifier for IEEE standards Represents conformance test documents Example: IEEE Std 802.16/Conformance01-2003

Constant Summary collapse

TYPED_STAGES =

TYPED_STAGES for conformance Conformance uses “Conformance” abbreviation

[
  Components::TypedStage.new(
    abbr: ["Conformance"],
    type_code: "conformance",
    stage_code: "published",
  ),
].freeze

Instance Attribute Summary

Attributes inherited from Base

#code_obj, #draft_obj

Instance Method Summary collapse

Methods inherited from SupplementIdentifier

#code, #publisher

Methods inherited from Base

#code, #draft, #draft_month, #initialize, parse, parse_single, #publisher

Methods inherited from Pubid::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_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code

Constructor Details

This class inherits a constructor from Pubid::Ieee::Identifiers::Base

Instance Method Details

#to_sObject



23
24
25
26
27
28
29
30
31
# File 'lib/pubid/ieee/identifiers/conformance_identifier.rb', line 23

def to_s
  return base_identifier.to_s unless base_identifier

  # Format: BASE/ConformanceNN-YEAR
  result = base_identifier.to_s
  result += "/Conformance#{conf_number}" if conf_number
  result += "-#{conf_year}" if conf_year
  result
end