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).
-
#root ⇒ Object
The origin document.
- #type ⇒ Object
- #year ⇒ Object
Methods inherited from Base
Methods inherited from Pubid::CenCenelec::Identifier
Methods inherited from 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, #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::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 |
#root ⇒ Object
The origin document. Members live in identifiers (not base), so
walk the first member to its root.
34 35 36 |
# File 'lib/pubid/cen_cenelec/identifiers/consolidated_identifier.rb', line 34 def root identifiers&.first&.root || self 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 |