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/ecloud/models/compute/task.rb

24 lines
686 B
Ruby
Raw Normal View History

module Fog
module Compute
class Ecloud
class Task < Fog::Ecloud::Model
2012-06-07 12:50:11 -04:00
identity :href
2012-06-07 12:50:11 -04:00
attribute :type , :aliases => :Type
attribute :operation, :aliases => :Operation
attribute :status, :aliases => :Status
attribute :impacted_item, :aliases => :ImpactedItem
attribute :start_time, :aliases => :StartTime
attribute :completed_time, :aliases => :CompletedTime
attribute :notes, :aliases => :Notes
attribute :error_message, :aliases => :ErrorMessage
attribute :initiated_by, :aliases => :InitiatedBy
2012-11-27 19:57:16 -05:00
def ready?
!self.completed_time.nil?
end
end
end
end
end