mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[core] add collection#destroy(identity)
This commit is contained in:
parent
fe1337dd79
commit
35bbd854e0
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue