Class: Pubid::Ashrae::Identifiers::AddendaPackage
- Inherits:
-
SupplementIdentifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Base
- SupplementIdentifier
- Pubid::Ashrae::Identifiers::AddendaPackage
- Defined in:
- lib/pubid/ashrae/identifiers/addenda_package.rb
Overview
AddendaPackage identifier for ASHRAE addenda collection packages Represents packages that contain multiple addendums Examples:
-
ASHRAE Standard 52.2-1999: Addenda Supplement Package (Contains Addendum a)
-
ASHRAE Standard 52.2-2007 Addenda Supplement Package (Contains Addendum b)
-
ASHRAE Standard 62.2-2004: Addenda Supplement Package (Contains Addendum g) (PDF)
Constant Summary collapse
- TYPED_STAGES =
[ Components::TypedStage.new( abbr: ["Addenda Supplement Package", "Addenda Package"], type_code: "addenda_package", 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/addenda_package.rb', line 25 def self.type { key: :addenda_package, title: "ASHRAE Addenda Package", short: "Addenda Package" } end |
Instance Method Details
#copublisher ⇒ Object
40 41 42 |
# File 'lib/pubid/ashrae/identifiers/addenda_package.rb', line 40 def copublisher base_identifier&.copublisher end |
#to_s ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/pubid/ashrae/identifiers/addenda_package.rb', line 30 def to_s return base_identifier.to_s unless base_identifier # Format: ASHRAE Standard 52.2-1999: Addenda Supplement Package result = "ASHRAE #{base_identifier.type || 'Standard'} #{base_identifier.code}" result += "-#{base_identifier.year}" if base_identifier.year result += ": Addenda #{package_description}" if package_description result end |