Class: MessageCommand
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- MessageCommand
- Defined in:
- lib/audit/lib/parser/command/message_command.rb
Constant Summary collapse
- COMMAND =
"MESSAGE"
Instance Attribute Summary
Attributes inherited from AbstractCommand
Instance Method Summary collapse
-
#initialize(check, severity, args) ⇒ MessageCommand
constructor
A new instance of MessageCommand.
- #result ⇒ Object
Methods inherited from AbstractCommand
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
#result ⇒ Object
18 19 20 |
# File 'lib/audit/lib/parser/command/message_command.rb', line 18 def result() return MessageCommandResult.new(@check, @severity, @message) end |