Class: ThingTask
Instance Method Summary collapse
-
#do_task_work ⇒ Object
Do the work for the thing task.
-
#initialize(webService, thing) ⇒ ThingTask
constructor
The constructor method for thing task.
Methods inherited from BaseTask
Constructor Details
#initialize(webService, thing) ⇒ ThingTask
The constructor method for thing task.
11 12 13 14 15 |
# File 'lib/tasks/thingTask.rb', line 11 def initialize( webService, thing ) super( webService, thing, true ) @web = webService @thing = thing end |
Instance Method Details
#do_task_work ⇒ Object
Do the work for the thing task.
20 21 22 |
# File 'lib/tasks/thingTask.rb', line 20 def do_task_work @web.add_thing( @thing ) end |