Class: Pubid::CenCenelec::Identifiers::ConsolidatedIdentifier
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- 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).
- #to_s(**opts) ⇒ Object
- #type ⇒ Object
- #year ⇒ Object
Methods inherited from Base
Methods included from Pubid::CenCenelec::Identifier
Methods included from IdentifierFacade
#from_hash, #polymorphic_type_map
Methods inherited from 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::Identifier
Instance Method Details
#number ⇒ Object
20 21 22 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 20 def number identifiers&.first&.number end |
#parts ⇒ Object
28 29 30 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 28 def parts identifiers&.first&.parts end |
#publisher ⇒ Object
Delegate to first identifier (base document)
16 17 18 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 16 def publisher identifiers&.first&.publisher end |
#to_s(**opts) ⇒ Object
11 12 13 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 11 def to_s(**opts) render(format: :human, **opts) end |
#type ⇒ Object
32 33 34 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 32 def type identifiers&.first&.type end |
#year ⇒ Object
24 25 26 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 24 def year identifiers&.first&.year end |