Class: Pubid::CenCenelec::Identifiers::Base
- Inherits:
-
Pubid::CenCenelec::Identifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Pubid::CenCenelec::Identifier
- Pubid::CenCenelec::Identifiers::Base
- Defined in:
- lib/pubid/cen_cenelec/identifiers/base.rb
Overview
Base CEN identifier (one of two roots; see Pubid::CenCenelec::Identifier). Format: PUBLISHER NUMBER:YEAR
Direct Known Subclasses
Amendment, ConsolidatedIdentifier, Corrigendum, Fragment, SupplementIdentifier
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#publisher ⇒ String
Generate URN for this identifier.
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, #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, #year
Constructor Details
This class inherits a constructor from Pubid::Identifier
Instance Method Details
#==(other) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/pubid/cen_cenelec/identifiers/base.rb', line 23 def ==(other) return false unless other.is_a?(Base) publisher == other.publisher && number == other.number && parts == other.parts && year == other.year end |
#publisher ⇒ String
Generate URN for this identifier
13 |
# File 'lib/pubid/cen_cenelec/identifiers/base.rb', line 13 attribute :publisher, :string, collection: true |