class Fog::Identity::Proxmox::User
class User model
Public Instance Methods
change_password()
click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 65 def change_password requires :userid requires :password service.change_password(userid, password) end
create(new_attributes = {})
click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 49 def create(new_attributes = {}) service.create_user(attributes.merge(new_attributes)) end
destroy()
click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 53 def destroy requires :userid service.delete_user(userid) true end
to_s()
click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 45 def to_s userid end
update()
click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 59 def update requires :userid attr = attributes.reject { |key, _value| key == :userid } service.update_user(userid, attr) end