Class: Pubid::Ieee::Identifiers::DualIdentifier

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

Overview

Dual Identifier - wraps two identifiers connected with “and” Example: “ANSI C37.61-1973 and IEEE Std 321-1973”

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



12
13
14
# File 'lib/pubid/ieee/identifiers/dual_identifier.rb', line 12

def to_s
  "#{first_identifier} and #{second_identifier}"
end