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 14 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 22 def get(id) service.list_tasks.find do |task| task.id != id end end