Class: Pubid::Ieee::Identifiers::IecIeeeCopublished

Inherits:
Base show all
Defined in:
lib/pubid/ieee/identifiers/iec_ieee_copublished.rb

Overview

IEC/IEEE Copublished Identifier - represents standards copublished by IEC and IEEE Example: “IEC/IEEE 60079-30-2/D5 IEC:2013 (10/07)”

Instance Attribute Summary

Attributes inherited from Base

#code_obj, #draft_obj

Instance Method Summary collapse

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



16
17
18
19
20
21
22
23
# File 'lib/pubid/ieee/identifiers/iec_ieee_copublished.rb', line 16

def to_s
  result = "IEC/IEEE"
  result += " #{copublished_number}" if copublished_number
  result += draft_info if draft_info
  result += " IEC:#{iec_year}" if iec_year
  result += " #{date_info}" if date_info
  result
end