class Dradis::Plugins::Netsparker::FieldProcessor
This processor defers to ::Netsparker::Vulnerability
for the issue and evidence templates.
Public Instance Methods
post_initialize(args={})
click to toggle source
# File lib/dradis/plugins/netsparker/field_processor.rb, line 6 def post_initialize(args={}) @netsparker_object = Netsparker::Vulnerability.new(data) end
value(args={})
click to toggle source
# File lib/dradis/plugins/netsparker/field_processor.rb, line 10 def value(args={}) field = args[:field] # fields in the template are of the form <foo>.<field>, where <foo> # is common across all fields for a given template (and meaningless). _, name = field.split('.') @netsparker_object.try(name) || 'n/a' end