Class: StatusTask

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

Instance Method Summary collapse

Methods inherited from BaseTask

#perform

Constructor Details

#initialize(webService, thing, *args) ⇒ StatusTask

Returns a new instance of StatusTask.



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

def initialize( webService, thing, *args )
  super( webService, thing, false )
  @web = webService
  @thing = thing
  @statusUpdates = statusArgsToArray( *args )
end

Instance Method Details

#do_task_workObject



12
13
14
# File 'lib/tasks/statusTask.rb', line 12

def do_task_work
  @web.add_status( @thing, @statusUpdates )
end