Class: Pubid::Ieee::Identifiers::MultiNumberedIdentifier
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Base
- Pubid::Ieee::Identifiers::MultiNumberedIdentifier
- 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
-
#primary_identifier ⇒ Object
Primary identifier (main IEEE standard number) Stored as-is (Lutaml model type checking doesn’t work with polymorphic identifiers).
-
#secondary_identifier ⇒ Object
Secondary identifier (additional number for same document).
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#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 Attribute Details
#primary_identifier ⇒ Object
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_identifier ⇒ Object
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
#code ⇒ Object
27 28 29 |
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 27 def code primary_identifier&.code end |
#publisher ⇒ Object
23 24 25 |
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 23 def publisher primary_identifier&.publisher end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 19 def to_s render(format: :human) end |
#year ⇒ Object
31 32 33 |
# File 'lib/pubid/ieee/identifiers/multi_numbered_identifier.rb', line 31 def year primary_identifier&.year end |