mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
24 lines
509 B
Ruby
24 lines
509 B
Ruby
|
require "fog/core/collection"
|
||
|
require "fog/brightbox/models/compute/user_collaboration"
|
||
|
|
||
|
module Fog
|
||
|
module Compute
|
||
|
class Brightbox
|
||
|
class UserCollaborations < Fog::Collection
|
||
|
model Fog::Compute::Brightbox::UserCollaboration
|
||
|
|
||
|
def all
|
||
|
data = connection.list_user_collaborations
|
||
|
load(data)
|
||
|
end
|
||
|
|
||
|
def destroy
|
||
|
requires :identity
|
||
|
connection.destroy_user_collaboration(identity)
|
||
|
true
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|