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

Returns a new instance of ThingTask.



5
6
7
8
9
# File 'lib/tasks/thingTask.rb', line 5

def initialize( webService, thing )
  super( webService, thing, true )
  @web = webService
  @thing = @thing
end

Instance Method Details

#do_task_workObject



11
12
13
# File 'lib/tasks/thingTask.rb', line 11

def do_task_work
  @web.add_thing( @thing )
end