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

28 lines
491 B
Ruby
Raw Normal View History

2013-06-20 13:36:34 -04:00
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
2013-07-04 07:24:25 -04:00
def get(id)
data = service.get_task(id).body
return nil unless data
data[:id] = data[:href].split('/').last
new(data)
end
2013-06-20 13:36:34 -04:00
end
end
end
end