Sha256: e7e108f854eec6981a753bebc39fe223a63b46d8691cef0e62c31bab7e020082
Contents?: true
Size: 577 Bytes
Versions: 32
Compression:
Stored size: 577 Bytes
Contents
module Dradis module Plugins module Brakeman class FieldProcessor < Dradis::Plugins::Upload::FieldProcessor # No need to implement anything here # def post_initialize(args={}) # end 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). type, name, attribute = field.split('.') @data.key?(name) ? @data[name] : 'n/a' end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems