Class: DataCommand
Constant Summary
collapse
- COMMAND =
"DATA"
Instance Attribute Summary
#check, #message, #severity
Instance Method Summary
collapse
#process
Constructor Details
#initialize(check, severity, args) ⇒ DataCommand
32
33
34
35
36
37
38
|
# File 'lib/audit/lib/parser/command/data_command.rb', line 32
def initialize(check, severity, args)
@data = args
@key = args[0] if args.length >= 1 or raise ParseException, "#{COMMAND} did not supply the data key argument: '#{args}'"
@value = args[1] if args.length >= 2 or raise ParseException, "#{COMMAND} did not supply the data value argument: '#{args}'"
super(check, severity, "custom check data")
end
|
Instance Method Details
#result ⇒ Object
40
41
42
|
# File 'lib/audit/lib/parser/command/data_command.rb', line 40
def result()
return DataCommandResult.new(@check, @severity, @key, @value)
end
|