Class: Fog::Proxmox::Identity::Domains
- Inherits:
-
Collection
- Object
- Collection
- Fog::Proxmox::Identity::Domains
- Defined in:
- lib/fog/proxmox/identity/models/domains.rb
Overview
class Domains collection authentication
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
29 30 31 |
# File 'lib/fog/proxmox/identity/models/domains.rb', line 29 def all load service.list_domains end |
#destroy(id) ⇒ Object
37 38 39 40 |
# File 'lib/fog/proxmox/identity/models/domains.rb', line 37 def destroy(id) domain = get(id) domain.destroy end |
#get(id) ⇒ Object
33 34 35 |
# File 'lib/fog/proxmox/identity/models/domains.rb', line 33 def get(id) all.find { |domain| domain.identity == id } end |