Class: Fog::Brightbox::Compute::UserCollaborations
- Inherits:
-
Collection
- Object
- Collection
- Fog::Brightbox::Compute::UserCollaborations
- Defined in:
- lib/fog/brightbox/models/compute/user_collaborations.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
9 10 11 12 |
# File 'lib/fog/brightbox/models/compute/user_collaborations.rb', line 9 def all data = service.list_user_collaborations load(data) end |
#destroy ⇒ Object
22 23 24 25 26 |
# File 'lib/fog/brightbox/models/compute/user_collaborations.rb', line 22 def destroy requires :identity service.delete_user_collaboration(identity) true end |
#get(identifier) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/fog/brightbox/models/compute/user_collaborations.rb', line 14 def get(identifier) return nil if identifier.nil? || identifier == "" data = service.get_user_collaboration(identifier) new(data) rescue Excon::Errors::NotFound nil end |