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/compute/requests/slicehost/delete_slice.rb
2011-02-09 16:31:57 -08:00

23 lines
512 B
Ruby

module Fog
module Slicehost
class Compute
class Real
# Delete a given slice
# ==== Parameters
# * slice_id<~Integer> - Id of slice to delete
#
# ==== Returns
# * response<~Excon::Response>: - HTTP status code is the return value
def delete_slice(slice_id)
request(
:expects => 200,
:method => 'DELETE',
:path => "slices/#{slice_id}.xml"
)
end
end
end
end
end