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

Constructor method for status task. Initialize status update array.



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

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

Instance Method Details

#do_task_workObject

Do the work for the status task.



21
22
23
# File 'lib/tasks/statusTask.rb', line 21

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