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/serverlove/models/compute/drive.rb
2012-04-27 14:55:06 +01:00

30 lines
538 B
Ruby

require 'fog/core/model'
module Fog
module Compute
class Serverlove
class Drive < Fog::Model
identity :drive
attribute :name
attribute :user
attribute :size
attribute :claimed
attribute :status
attribute :encryption_cipher, :aliases => 'encryption:cipher'
def save
# TODO
end
def destroy
requires :identity
connection.destroy_drive(identity)
true
end
end
end
end
end