Class: Fog::Compute::Ecloud::Tasks
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::Tasks
- Defined in:
- lib/fog/compute/ecloud/models/tasks.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
#all ⇒ Object
13 14 15 16 17 |
# File 'lib/fog/compute/ecloud/models/tasks.rb', line 13 def all data = service.get_tasks(href).body data = data[:Task] ? data[:Task] : data load(data) end |
#get(uri) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/fog/compute/ecloud/models/tasks.rb', line 19 def get(uri) if data = service.get_task(uri) new(data.body) end rescue Fog::Errors::NotFound nil end |