Class: Fog::Vcloud::Compute::Tasks
- Inherits:
-
Fog::Vcloud::Collection
- Object
- Collection
- Fog::Vcloud::Collection
- Fog::Vcloud::Compute::Tasks
- Defined in:
- lib/fog/vcloud/models/compute/tasks.rb
Instance Method Summary collapse
Methods inherited from Fog::Vcloud::Collection
Instance Method Details
#all ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/fog/vcloud/models/compute/tasks.rb', line 11 def all self.href = service.default_vdc_href unless self.href check_href! if data = service.get_task_list(href).body[:Task] load(data) end end |
#get(uri) ⇒ Object
19 20 21 22 23 |
# File 'lib/fog/vcloud/models/compute/tasks.rb', line 19 def get(uri) service.get_task(uri) rescue Fog::Errors::NotFound nil end |