Class: HeimdallTools::FirewallManager
- Inherits:
-
Object
- Object
- HeimdallTools::FirewallManager
- Defined in:
- lib/heimdall_tools/asff_compatible_products/firewall_manager.rb
Class Method Summary collapse
Class Method Details
.finding_id(finding, encode:) ⇒ Object
3 4 5 |
# File 'lib/heimdall_tools/asff_compatible_products/firewall_manager.rb', line 3 def self.finding_id(finding, *, encode:, **) encode.call(finding['Title']) end |
.product_name(findings, encode:) ⇒ Object
7 8 9 |
# File 'lib/heimdall_tools/asff_compatible_products/firewall_manager.rb', line 7 def self.product_name(findings, *, encode:, **) encode.call("#{findings[0]['ProductFields']['aws/securityhub/CompanyName']} #{findings[0]['ProductFields']['aws/securityhub/ProductName']}") end |