Class: Pubid::Ashrae::Identifiers::CombinedAddenda
- Inherits:
-
SupplementIdentifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Base
- SupplementIdentifier
- Pubid::Ashrae::Identifiers::CombinedAddenda
- Defined in:
- lib/pubid/ashrae/identifiers/combined_addenda.rb
Overview
CombinedAddenda identifier for ASHRAE standards and guidelines Represents multiple addendums grouped together Examples:
-
ASHRAE Addenda c and d to Standard 15-1994
-
ASHRAE Addenda f and h for Standard 15-2007
Constant Summary collapse
- TYPED_STAGES =
[ Components::TypedStage.new( abbr: ["Addenda", "Combined Addenda"], type_code: "combined_addenda", stage_code: "published", ), ].freeze
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SupplementIdentifier
Methods inherited from Base
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
Class Method Details
.type ⇒ Object
25 26 27 28 |
# File 'lib/pubid/ashrae/identifiers/combined_addenda.rb', line 25 def self.type { key: :combined_addenda, title: "ASHRAE Combined Addenda", short: "Addenda" } end |
Instance Method Details
#copublisher ⇒ Object
45 46 47 |
# File 'lib/pubid/ashrae/identifiers/combined_addenda.rb', line 45 def copublisher base_identifier&.copublisher end |
#to_s ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/pubid/ashrae/identifiers/combined_addenda.rb', line 30 def to_s return base_identifier.to_s unless base_identifier base_type = base_identifier.type || "Standard" if addendum_codes # Format: ASHRAE Addenda c and d to Standard 15-1994 result = "ASHRAE Addenda #{addendum_codes} to #{base_type} #{base_identifier.code}" else # Format: ASHRAE Addenda to Standard 15-1994 (no specific codes) result = "ASHRAE Addenda to #{base_type} #{base_identifier.code}" end result += "-#{base_identifier.year}" if base_identifier.year result end |