Class: Simultaneous::Command::TaskComplete

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/simultaneous/command/task_complete.rb

Instance Attribute Summary

Attributes inherited from CommandBase

#cmd, #params, #tag, #task

Instance Method Summary collapse

Methods inherited from CommandBase

#domain, #domain=, #dump, #merge_params, #namespaced_task_name, #task_name

Constructor Details

#initialize(task_name) ⇒ TaskComplete

Returns a new instance of TaskComplete.



6
7
8
# File 'lib/simultaneous/command/task_complete.rb', line 6

def initialize(task_name)
  @task_name = task_name
end

Instance Method Details

#debugObject



13
14
15
# File 'lib/simultaneous/command/task_complete.rb', line 13

def debug
  "TaskComplete :#{namespaced_task_name}\n"
end

#runObject



10
11
12
# File 'lib/simultaneous/command/task_complete.rb', line 10

def run
  Simultaneous::Server.task_complete(namespaced_task_name)
end