Class: Fog::Brightbox::Compute::UserCollaboration
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::Brightbox::Compute::UserCollaboration
show all
- Defined in:
- lib/fog/brightbox/models/compute/user_collaboration.rb
Instance Method Summary
collapse
#collection_name, #resource_name
Instance Method Details
#accept ⇒ Object
29
30
31
32
33
34
|
# File 'lib/fog/brightbox/models/compute/user_collaboration.rb', line 29
def accept
requires :identity
data = service.accept_user_collaboration(identity)
merge_attributes(data)
true
end
|
#account_id ⇒ Object
25
26
27
|
# File 'lib/fog/brightbox/models/compute/user_collaboration.rb', line 25
def account_id
account["id"] || account[:id]
end
|
#destroy ⇒ Object
43
44
45
46
47
48
|
# File 'lib/fog/brightbox/models/compute/user_collaboration.rb', line 43
def destroy
requires :identity
data = service.delete_user_collaboration(identity)
merge_attributes(data)
true
end
|
#reject ⇒ Object
36
37
38
39
40
41
|
# File 'lib/fog/brightbox/models/compute/user_collaboration.rb', line 36
def reject
requires :identity
data = service.reject_user_collaboration(identity)
merge_attributes(data)
true
end
|