class Dradis::Plugins::Upload::FieldProcessor
Attributes
data[R]
Public Class Methods
new(args={})
click to toggle source
# File lib/dradis/plugins/upload/field_processor.rb, line 12 def initialize(args={}) @data = args[:data] post_initialize(args) end
Public Instance Methods
value(args={})
click to toggle source
Inspect the data object currently stored in this processor instance and extract the value of the requested field.
Subclasses will overwrite this method.
# File lib/dradis/plugins/upload/field_processor.rb, line 21 def value(args={}) field = args[:field] "Sorry, this plugin doesn't define a FieldProcessor (called for [#{field}])" end
Protected Instance Methods
post_initialize(args={})
click to toggle source
This can be overriden by subclasses
# File lib/dradis/plugins/upload/field_processor.rb, line 28 def post_initialize(args={}) # nop end