Class: Pubid::Iec::Identifiers::SocietalTechnologyTrendReport
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Pubid::Iec::Identifier
- SingleIdentifier
- Base
- Pubid::Iec::Identifiers::SocietalTechnologyTrendReport
- Defined in:
- lib/pubid/iec/identifiers/societal_technology_trend_report.rb
Overview
Societal Technology Trend Report identifier class Single Responsibility: Represents IEC STTR documents
Constant Summary collapse
- TYPED_STAGES =
Societal Technology Trend Reports have full phrase as type abbreviation
[ Pubid::Components::TypedStage.new( code: :sttr, stage_code: :published, type_code: :sttr, abbr: ["Trend Report"], name: "Societal and Technology Trend Report", harmonized_stages: %w[60.00 60.60], ), ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#publisher_portion ⇒ Object
Override publisher_portion to add Trend Report.
Methods inherited from Base
#number_portion, #to_s, #validate!
Methods inherited from SingleIdentifier
#edition_portion, #language_portion, #number_portion, #to_s
Methods inherited from Pubid::Iec::Identifier
Methods inherited from Pubid::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_s, #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
22 23 24 25 |
# File 'lib/pubid/iec/identifiers/societal_technology_trend_report.rb', line 22 def self.type { key: :sttr, title: "Societal and Technology Trend Report", short: "Trend Report" } end |
Instance Method Details
#publisher_portion ⇒ Object
Override publisher_portion to add Trend Report
28 29 30 31 32 33 34 35 36 |
# File 'lib/pubid/iec/identifiers/societal_technology_trend_report.rb', line 28 def publisher_portion result = publisher.to_s if typed_stage && typed_stage.abbreviation == "Trend Report" result += " Trend Report" end result end |