class Deltacloud::StorageSnapshot

Attributes

created[RW]
description[RW]
name[RW]
state[RW]
storage_volume_id[RW]

Public Instance Methods

is_completed?() click to toggle source
# File lib/deltacloud/models/storage_snapshot.rb, line 26
def is_completed?
  state == 'completed'
end
to_hash(context) click to toggle source
# File lib/deltacloud/models/storage_snapshot.rb, line 30
def to_hash(context)
  {
    :id => self.id,
    :href => context.storage_snapshot_url(self.id),
    :state => state,
    :storage_volume => {
      :id => storage_volume_id,
      :href => context.storage_volume_url(storage_volume_id),
      :rel => :storage_volume 
    },
    :created => created
  }
end