Class: Pubid::CenCenelec::Identifiers::ConsolidatedIdentifier
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Identifier
- Pubid::CenCenelec::Identifier
- Base
- Pubid::CenCenelec::Identifiers::ConsolidatedIdentifier
- Defined in:
- lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb
Overview
Consolidated Identifier - contains base document plus supplements Example: "EN 196-3:2005+A1:2008" = [EN 196-3:2005, Amendment(base + params)]
Instance Method Summary collapse
- #number ⇒ Object
- #parts ⇒ Object
-
#publisher ⇒ Object
Delegate to first identifier (base document).
- #type ⇒ Object
- #year ⇒ Object
Methods inherited from Base
Methods inherited from Pubid::CenCenelec::Identifier
Methods inherited from Identifier
#base_identifier, #eql?, #exclude, from_hash, #hash, #initialize, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #render, #resolve_urn_generator, #root, #to_hash, #to_mr_string, #to_s, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code
Constructor Details
This class inherits a constructor from Pubid::Identifier
Instance Method Details
#number ⇒ Object
16 17 18 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 16 def number identifiers&.first&.number end |
#parts ⇒ Object
24 25 26 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 24 def parts identifiers&.first&.parts end |
#publisher ⇒ Object
Delegate to first identifier (base document)
12 13 14 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 12 def publisher identifiers&.first&.publisher end |
#type ⇒ Object
28 29 30 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 28 def type identifiers&.first&.type end |
#year ⇒ Object
20 21 22 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 20 def year identifiers&.first&.year end |