Class: Pubid::Iec::Identifier::SocietalTechnologyTrendReport
- Inherits:
-
Base
- Object
- Core::Identifier::Base
- Base
- Pubid::Iec::Identifier::SocietalTechnologyTrendReport
- Defined in:
- lib/pubid/iec/identifier/societal_technology_trend_report.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
#base, #conjuction_part, #database, #day, #decision_sheet, #fragment, #month, #part_version, #sheet, #test_type, #trf_publisher, #trf_series, #trf_version, #vap, #version
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
get_amendment_class, get_corrigendum_class, get_identifier, get_parser_class, get_renderer_class, get_transformer_class, get_update_codes, has_project_stage?, has_type?, #initialize, #lookup_typed_stage, normalize_urn_params!, #renderer_data, resolve_project_stage, #root, #to_s, #to_yaml, transform, transform_hash, #urn
Constructor Details
This class inherits a constructor from Pubid::Iec::Base
Class Method Details
.type ⇒ Object
7 8 9 |
# File 'lib/pubid/iec/identifier/societal_technology_trend_report.rb', line 7 def self.type { key: :sttr, title: "Societal and Technology Trend Report", short: "Trend Report" } end |
Instance Method Details
#to_h(deep: true, add_type: true) ⇒ Object
11 12 13 14 15 |
# File 'lib/pubid/iec/identifier/societal_technology_trend_report.rb', line 11 def to_h(deep: true, add_type: true) result = super(deep: deep, add_type: false) result[:type] = "Trend Report" if add_type result end |