Class: Pubid::Ieee::Identifiers::CsaDualPublished

Inherits:
Pubid::Ieee::Identifier show all
Defined in:
lib/pubid/ieee/identifiers/csa_dual_published.rb

Overview

CSA dual published identifier Represents IEEE/CSA dual published standards Example: IEEE Std 844.1-2017/CSA C22.2 No. 293.1-17

Instance Attribute Summary collapse

Attributes inherited from Pubid::Ieee::Identifier

#code_obj, #draft_obj

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pubid::Ieee::Identifier

additional_identifier_classes, #draft, #draft_month, #exclude, from_hash, #initialize, #mr_number_with_part, #mr_publisher, #mr_type, #mr_year, parse_single, #to_hash

Methods inherited from Pubid::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

Constructor Details

This class inherits a constructor from Pubid::Ieee::Identifier

Instance Attribute Details

#csa_identifierObject

CSA identifier is stored as-is (not a Lutaml model type)



12
13
14
# File 'lib/pubid/ieee/identifiers/csa_dual_published.rb', line 12

def csa_identifier
  @csa_identifier
end

Class Method Details

.parse(string) ⇒ Object



35
36
37
# File 'lib/pubid/ieee/identifiers/csa_dual_published.rb', line 35

def self.parse(string)
  Identifier.parse(string)
end

Instance Method Details

#codeObject



23
24
25
# File 'lib/pubid/ieee/identifiers/csa_dual_published.rb', line 23

def code
  ieee_identifier.code
end

#copublisherObject



19
20
21
# File 'lib/pubid/ieee/identifiers/csa_dual_published.rb', line 19

def copublisher
  ieee_identifier.copublisher
end

#publisherObject

Delegate common attributes to ieee_identifier



15
16
17
# File 'lib/pubid/ieee/identifiers/csa_dual_published.rb', line 15

def publisher
  ieee_identifier.publisher
end

#typed_stageObject



31
32
33
# File 'lib/pubid/ieee/identifiers/csa_dual_published.rb', line 31

def typed_stage
  ieee_identifier.typed_stage
end

#yearObject



27
28
29
# File 'lib/pubid/ieee/identifiers/csa_dual_published.rb', line 27

def year
  ieee_identifier.year
end