Class: StatusTask
Instance Method Summary collapse
-
#do_task_work ⇒ Object
Do the work for the status task.
-
#initialize(webService, thing, *args) ⇒ StatusTask
constructor
Constructor method for status task.
Methods inherited from BaseTask
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_work ⇒ Object
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 |