Class: HeimdallTools::Prowler

Inherits:
Object
  • Object
show all
Defined in:
lib/heimdall_tools/asff_compatible_products/prowler.rb

Class Method Summary collapse

Class Method Details

.descObject



15
16
17
# File 'lib/heimdall_tools/asff_compatible_products/prowler.rb', line 15

def self.desc(*, **)
  ' '
end

.finding_id(finding, encode:) ⇒ Object



7
8
9
# File 'lib/heimdall_tools/asff_compatible_products/prowler.rb', line 7

def self.finding_id(finding, *, encode:, **)
  encode.call(finding['GeneratorId'].partition('-')[-1])
end

.product_name(findings, encode:) ⇒ Object



11
12
13
# File 'lib/heimdall_tools/asff_compatible_products/prowler.rb', line 11

def self.product_name(findings, *, encode:, **)
  encode.call(findings[0]['ProductFields']['ProviderName'])
end

.subfindings_code_desc(finding, encode:) ⇒ Object



3
4
5
# File 'lib/heimdall_tools/asff_compatible_products/prowler.rb', line 3

def self.subfindings_code_desc(finding, *, encode:, **)
  encode.call(finding['Description'])
end