# File lib/fog/rackspace/models/identity/user.rb, line 42 def credentials @credentials ||= begin Fog::Rackspace::Identity::Credentials.new({ :connection => connection, :user => self }) end end
# File lib/fog/rackspace/models/identity/user.rb, line 27 def destroy requires :identity connection.delete_user(identity) true end
# File lib/fog/rackspace/models/identity/user.rb, line 33 def roles @roles ||= begin Fog::Rackspace::Identity::Roles.new({ :connection => connection, :user => self }) end end
# File lib/fog/rackspace/models/identity/user.rb, line 16 def save requires :username, :email, :enabled if identity.nil? data = connection.create_user(username, email, enabled, :password => password) else data = connection.update_user(identity, username, email, enabled, :password => password) end merge_attributes(data.body['user']) true end