Class: Schedule::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/schedule/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, command) ⇒ Task

Returns a new instance of Task.



5
6
7
8
# File 'lib/schedule/task.rb', line 5

def initialize(name, command)
  @name = name
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



3
4
5
# File 'lib/schedule/task.rb', line 3

def command
  @command
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/schedule/task.rb', line 3

def name
  @name
end