Sha256: 15bc4391ef7f88c18a4be1bd220de0d2ee797312250bc47785fa272251087298
Contents?: true
Size: 706 Bytes
Versions: 22
Compression:
Stored size: 706 Bytes
Contents
require "fog/brightbox/models/compute/user_collaboration" module Fog module Brightbox class Compute class UserCollaborations < Fog::Collection model Fog::Brightbox::Compute::UserCollaboration def all data = service.list_user_collaborations load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = service.get_user_collaboration(identifier) new(data) rescue Excon::Errors::NotFound nil end def destroy requires :identity service.delete_user_collaboration(identity) true end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems