From 35bbd854e00af569988c9c9f626bac0c7010c6b9 Mon Sep 17 00:00:00 2001 From: geemus Date: Tue, 23 Aug 2011 09:43:24 -0500 Subject: [PATCH] [core] add collection#destroy(identity) --- lib/fog/core/collection.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/fog/core/collection.rb b/lib/fog/core/collection.rb index 802db6052..165db0efe 100644 --- a/lib/fog/core/collection.rb +++ b/lib/fog/core/collection.rb @@ -51,6 +51,11 @@ module Fog object end + def destroy(identity) + object = new(:identity => identity) + object.destroy + end + def initialize(attributes = {}) @loaded = false merge_attributes(attributes)