Class: OpenTox::SubTask

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

Overview

TODO: subtasks (only for progress)

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task, min, max) ⇒ SubTask


145
146
147
# File 'lib/task.rb', line 145

def initialize(task, min, max)
  #TODO add subtask code
end

Class Method Details

.create(task, min, max) ⇒ Object


149
150
151
152
153
154
155
# File 'lib/task.rb', line 149

def self.create(task, min, max)
  if task
    SubTask.new(task, min, max)
  else
    nil
  end
end

Instance Method Details

#progress(pct) ⇒ Object


161
162
163
# File 'lib/task.rb', line 161

def progress(pct)
  #TODO add subtask code
end

#running?Boolean


165
166
167
# File 'lib/task.rb', line 165

def running?()
  #TODO add subtask code
end

#waiting_for(task_uri) ⇒ Object


157
158
159
# File 'lib/task.rb', line 157

def waiting_for(task_uri)
  #TODO add subtask code
end