class Fog::Scaleway::Compute::Tasks
Public Instance Methods
all()
click to toggle source
# File lib/fog/scaleway/models/compute/tasks.rb, line 7 def all tasks = service.list_tasks.body['tasks'] load(tasks) end
get(identity)
click to toggle source
# File lib/fog/scaleway/models/compute/tasks.rb, line 12 def get(identity) if (task = service.get_task(identity).body['task']) new(task) end rescue Fog::Scaleway::Compute::UnknownResource nil end