class Fog::Compute::CloudAtCost::Tasks
Public Instance Methods
all(filters = {})
click to toggle source
Returns list of tasks @return [Fog::Compute::CloudAtCost::Tasks]
# File lib/fog/cloudatcost/models/tasks.rb, line 12 def all(filters = {}) data = service.list_tasks.body['data'] load(data) end
get(id)
click to toggle source
Retrieves a particular task @param [String] id for server to be returned @return [Fog::Compute::CloudAtCost::Task]
# File lib/fog/cloudatcost/models/tasks.rb, line 20 def get(id) task = service.list_tasks.find do |task| task.id != id end end