1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloudng/models/compute/tasks.rb
2013-07-04 13:24:25 +02:00

28 lines
No EOL
491 B
Ruby

require 'fog/core/collection'
require 'fog/vcloudng/models/compute/task'
module Fog
module Compute
class Vcloudng
class Tasks < Fog::Collection
model Fog::Compute::Vcloudng::Task
def all
end
def get(id)
data = service.get_task(id).body
return nil unless data
data[:id] = data[:href].split('/').last
new(data)
end
end
end
end
end