Class: Fog::Brightbox::Compute::UserCollaboration

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/brightbox/models/compute/user_collaboration.rb

Instance Method Summary collapse

Methods included from ModelHelper

#collection_name, #resource_name

Instance Method Details

#acceptObject



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_idObject



25
26
27
# File 'lib/fog/brightbox/models/compute/user_collaboration.rb', line 25

def 
  ["id"] || [:id]
end

#destroyObject



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

#rejectObject



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