Class: Fog::VcloudDirector::Compute::Tasks
- Inherits:
-
Collection
- Object
- Collection
- Collection
- Fog::VcloudDirector::Compute::Tasks
- Includes:
- Query
- Defined in:
- lib/fog/vcloud_director/models/compute/tasks.rb
Instance Method Summary collapse
Methods included from Query
Methods inherited from Collection
#_item_list, #all, #get_by_name, #get_everyone, #index, #with_item_list
Instance Method Details
#get(id) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/fog/vcloud_director/models/compute/tasks.rb', line 18 def get(id) data = service.get_task(id).body return nil unless data data[:id] = data[:href].split('/').last data[:progress] ||= 0 new(data) end |
#query_type ⇒ Object
14 15 16 |
# File 'lib/fog/vcloud_director/models/compute/tasks.rb', line 14 def query_type "task" end |