Class: Risu::Base::TemplateBase
- Inherits:
-
Object
- Object
- Risu::Base::TemplateBase
- Defined in:
- lib/risu/base/template_base.rb
Overview
Base template class, all report templates must be a subclass of this.
Direct Known Subclasses
Templates::AssetsTemplate, Templates::AuthenticationSummary, Templates::CoverSheet, Templates::ExecSummary, Templates::ExecutiveSummaryDetailed, Templates::ExploitablitySummary, Templates::FailedAudits, Templates::FindingStatistics, Templates::FindingsHost, Templates::FindingsSummary, Templates::FindingsSummaryWithPluginID, Templates::Graphs, Templates::HostFindingsCSV, Templates::HostSummary, Templates::MSPatchSummary, Templates::MSUpdateSummary, Templates::MSWSUSFindingsTemplate, Templates::MaliciousProcessDetection, Templates::MissingRootCauses, Templates::NotableTemplate, Templates::NotableTemplateDetailed, Templates::PCICompliance, Templates::RollupSummary, Templates::StigFindingsSummaryTemplate, Templates::TalkingPoints, Templates::TechnicalFindingsTemplate, Templates::Template, Templates::Top25
Class Attribute Summary collapse
-
.possible_templates ⇒ Object
readonly
Returns the value of attribute possible_templates.
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
-
#template_info ⇒ Hash
Accessors for template meta-data.
Class Method Summary collapse
-
.inherited(child) ⇒ Object
Adds any class that inherits from [TemplateBase] into an [Array] of possible templates for further validation.
Class Attribute Details
.possible_templates ⇒ Object (readonly)
Returns the value of attribute possible_templates.
41 42 43 |
# File 'lib/risu/base/template_base.rb', line 41 def possible_templates @possible_templates end |
Instance Attribute Details
#output ⇒ Object
Returns the value of attribute output.
30 31 32 |
# File 'lib/risu/base/template_base.rb', line 30 def output @output end |
#template_info ⇒ Hash
Accessors for template meta-data
36 37 38 |
# File 'lib/risu/base/template_base.rb', line 36 def template_info @template_info end |
Class Method Details
.inherited(child) ⇒ Object
Adds any class that inherits from [TemplateBase] into an [Array] of possible templates for further validation.
47 48 49 |
# File 'lib/risu/base/template_base.rb', line 47 def self.inherited(child) possible_templates << child end |