Class: Fog::Compute::CloudAtCost::Tasks
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::CloudAtCost::Tasks
- Defined in:
- lib/fog/cloudatcost/models/tasks.rb
Instance Method Summary collapse
-
#all(filters = {}) ⇒ Fog::Compute::CloudAtCost::Tasks
Returns list of tasks.
-
#get(id) ⇒ Fog::Compute::CloudAtCost::Task
Retrieves a particular task.
Instance Method Details
#all(filters = {}) ⇒ Fog::Compute::CloudAtCost::Tasks
Returns list of tasks
12 13 14 15 |
# File 'lib/fog/cloudatcost/models/tasks.rb', line 12 def all(filters = {}) data = service.list_tasks.body['data'] load(data) end |
#get(id) ⇒ Fog::Compute::CloudAtCost::Task
Retrieves a particular task
20 21 22 23 24 |
# File 'lib/fog/cloudatcost/models/tasks.rb', line 20 def get(id) task = service.list_tasks.find do |task| task.id != id end end |