Class: MessageCommand

Inherits:
AbstractCommand show all
Defined in:
lib/audit/lib/parser/command/message_command.rb

Constant Summary collapse

COMMAND =
"MESSAGE"

Instance Attribute Summary

Attributes inherited from AbstractCommand

#check, #message, #severity

Instance Method Summary collapse

Methods inherited from AbstractCommand

#process

Constructor Details

#initialize(check, severity, args) ⇒ MessageCommand

Returns a new instance of MessageCommand.



14
15
16
# File 'lib/audit/lib/parser/command/message_command.rb', line 14

def initialize(check, severity, args)
   super(check, severity, args[0 .. -1].join)
end

Instance Method Details

#resultObject



18
19
20
# File 'lib/audit/lib/parser/command/message_command.rb', line 18

def result()
  return MessageCommandResult.new(@check, @severity, @message)
end