Class: Pubid::Ieee::Identifiers::MultiNumberedIdentifier

Inherits:
Pubid::Ieee::Identifier show all
Defined in:
lib/pubid/ieee/identifiers/multi_numbered_identifier.rb

Overview

Multi-Numbered Identifier Represents a single document published under multiple numbers Examples:

  • "IEEE Std 1299/C62.22.1-1996" (same document, two numbers)
  • "IEEE Std 960-1989, Std 1177-1989" (same document, two numbers)

Instance Attribute Summary collapse

Attributes inherited from Pubid::Ieee::Identifier

#code_obj, #draft_obj

Instance Method Summary collapse

Methods inherited from Pubid::Ieee::Identifier

additional_identifier_classes, #draft, #draft_month, #exclude, from_hash, #initialize, #mr_number_with_part, #mr_publisher, #mr_type, #mr_year, parse, parse_single, #to_hash

Methods inherited from Pubid::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

Constructor Details

This class inherits a constructor from Pubid::Ieee::Identifier

Instance Attribute Details

#primary_identifierObject

Primary identifier (main IEEE standard number) Stored as-is (Lutaml model type checking doesn't work with polymorphic identifiers)



14
15
16
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 14

def primary_identifier
  @primary_identifier
end

#secondary_identifierObject

Secondary identifier (additional number for same document)



17
18
19
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 17

def secondary_identifier
  @secondary_identifier
end

Instance Method Details

#codeObject



23
24
25
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 23

def code
  primary_identifier&.code
end

#publisherObject



19
20
21
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 19

def publisher
  primary_identifier&.publisher
end

#yearObject



27
28
29
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 27

def year
  primary_identifier&.year
end