Class: AlertDesigner::Command

Inherits:
BasicObject
Defined in:
lib/alertdesigner/command.rb

Overview

Class to represent a command

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/alertdesigner/command.rb', line 4

def name
  @name
end