class Dradis::Plugins::NTOSpider::FieldProcessor
Public Instance Methods
post_initialize(args={})
click to toggle source
# File lib/dradis/plugins/ntospider/field_processor.rb, line 4 def post_initialize(args={}) @nto_object = ::NTOSpider::Vuln.new(data) end
value(args={})
click to toggle source
# File lib/dradis/plugins/ntospider/field_processor.rb, line 8 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('.') # The XML uses a <Method> entity, but 'method' is a reserved word here so: name = 'vuln_method' if name == 'method' @nto_object.try(name) || 'n/a' end