Class: VMware::TaskManager

Inherits:
ManagedEntity show all
Defined in:
lib/vmware/objects/task_manager.rb

Overview

nothing usefull in here just to suppress warning

Instance Attribute Summary

Attributes inherited from ManagedEntity

#object_reference

Instance Method Summary collapse

Methods inherited from ManagedEntity

#[], #initialize, #properties

Constructor Details

This class inherits a constructor from VMware::ManagedEntity

Instance Method Details

#recent_tasksObject



6
7
8
9
10
11
12
# File 'lib/vmware/objects/task_manager.rb', line 6

def recent_tasks
  tasks = self["recentTask"]
  return [] if tasks.nil?
  tasks.collect do |task|
    @session.managed_object_wrapper_factory("Task", task)['info']
  end
end