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/task.rb
2013-07-05 15:21:40 +02:00

34 lines
No EOL
804 B
Ruby

require 'fog/core/model'
module Fog
module Compute
class Vcloudng
class Task < Fog::Model
identity :id
attribute :name
attribute :type
attribute :href
attribute :status
attribute :operation
attribute :operation_name, :aliases => :operationName
attribute :expirity_time, :aliases => :expiryTime, :type => :time
attribute :end_time, :aliases => :endTime, :type => :time
attribute :error, :aliases => :Error
attribute :result, :aliases => :Result
attribute :progress, :aliases => :Progress
def ready?
status == 'success'
end
def success?
status == 'success'
end
end
end
end
end