Class: ThingTask

Inherits:
BaseTask show all
Defined in:
lib/tasks/thingTask.rb

Instance Method Summary collapse

Methods inherited from BaseTask

#perform

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_workObject

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