Class: Fog::Rackspace::Databases::User

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/rackspace/models/databases/user.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



19
20
21
22
23
# File 'lib/fog/rackspace/models/databases/user.rb', line 19

def destroy
  requires :identity, :instance
  service.delete_user(instance.identity, identity)
  true
end

#saveObject



13
14
15
16
17
# File 'lib/fog/rackspace/models/databases/user.rb', line 13

def save
  requires :identity, :instance, :password
  service.create_user(instance.identity, identity, password, :databases => databases, :host => host)
  true
end