Class: Fog::Proxmox::Identity::Users

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/identity/proxmox/models/users.rb

Overview

class Users model collection

Instance Method Summary collapse

Instance Method Details

#all(filters = {}) ⇒ Object



29
30
31
# File 'lib/fog/identity/proxmox/models/users.rb', line 29

def all(filters = {})
  load service.list_users(filters)
end

#destroy(id) ⇒ Object



37
38
39
40
# File 'lib/fog/identity/proxmox/models/users.rb', line 37

def destroy(id)
  user = get(id)
  user.destroy
end

#get(id) ⇒ Object



33
34
35
# File 'lib/fog/identity/proxmox/models/users.rb', line 33

def get(id)
  all.find { |user| user.identity === id }
end