Class: AlertDesigner::Command
- Inherits:
- BasicObject
- Defined in:
- lib/alertdesigner/command.rb
Overview
Class to represent a command
Instance Attribute Summary collapse
-
#command(command = nil) ⇒ Object
readonly
Returns the value of attribute command.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(name) ⇒ Command
Returns a new instance of Command.
6 7 8 9 |
# File 'lib/alertdesigner/command.rb', line 6 def initialize(name) @name = name @command = "" end |
Instance Attribute Details
#command(command = nil) ⇒ Object (readonly)
Returns the value of attribute command.
4 5 6 |
# File 'lib/alertdesigner/command.rb', line 4 def command @command end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/alertdesigner/command.rb', line 4 def name @name end |