Class: Pubid::Ieee::Identifiers::AdoptedStandard
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Base
- Pubid::Ieee::Identifiers::AdoptedStandard
- Defined in:
- lib/pubid/ieee/identifiers/adopted_standard.rb
Overview
Adopted Standard Identifier IEEE’s adoption of another organization’s standard Example: “IEEE Standard No 18-1968 (ANSI C55.1-1968)” This means IEEE adopted ANSI’s standard C55.1-1968 as their Std No 18-1968
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#code, #draft, #draft_month, #initialize, parse, parse_single
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
#publisher ⇒ Object
27 28 29 |
# File 'lib/pubid/ieee/identifiers/adopted_standard.rb', line 27 def publisher ieee_identifier&.publisher || "IEEE" end |
#to_s ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/pubid/ieee/identifiers/adopted_standard.rb', line 18 def to_s result = ieee_identifier.to_s if adopted_identifiers && !adopted_identifiers.empty? adopted_strs = adopted_identifiers.map(&:to_s) result += " (#{adopted_strs.join(' and ')})" end result end |