Class: ThingTask
Instance Method Summary collapse
- #do_task_work ⇒ Object
-
#initialize(webService, thing) ⇒ ThingTask
constructor
A new instance of ThingTask.
Methods inherited from BaseTask
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_work ⇒ Object
11 12 13 |
# File 'lib/tasks/thingTask.rb', line 11 def do_task_work @web.add_thing( @thing ) end |