Class: Dradis::Plugins::Netsparker::FieldProcessor
- Inherits:
-
Upload::FieldProcessor
- Object
- Upload::FieldProcessor
- Dradis::Plugins::Netsparker::FieldProcessor
- Defined in:
- lib/dradis/plugins/netsparker/field_processor.rb
Overview
This processor defers to ::Netsparker::Vulnerability for the issue and evidence templates.
Instance Method Summary collapse
Instance Method Details
#post_initialize(args = {}) ⇒ Object
6 7 8 |
# File 'lib/dradis/plugins/netsparker/field_processor.rb', line 6 def post_initialize(args={}) @netsparker_object = Netsparker::Vulnerability.new(data) end |
#value(args = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# 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 |