Class: Dradis::Plugins::Wpscan::FieldProcessor
- Inherits:
-
Upload::FieldProcessor
- Object
- Upload::FieldProcessor
- Dradis::Plugins::Wpscan::FieldProcessor
- Defined in:
- lib/dradis/plugins/wpscan/field_processor.rb
Instance Method Summary collapse
-
#value(args = {}) ⇒ Object
No need to implement anything here def post_initialize(args={}) end.
Instance Method Details
#value(args = {}) ⇒ Object
No need to implement anything here def post_initialize(args={}) end
9 10 11 12 13 14 15 16 17 |
# File 'lib/dradis/plugins/wpscan/field_processor.rb', line 9 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 |