class Fog::Compute::Ecloud::Tasks

Public Instance Methods

all() click to toggle source
# 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) click to toggle source
# File lib/fog/compute/ecloud/models/tasks.rb, line 19
def get(uri)
  if data = service.get_task(uri)
    new(data.body)
  end
rescue ServiceError => e
  raise e unless e.status_code == 404
  nil
end