Class: Fog::Proxmox::Compute::Nodes

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

Overview

class Nodes Collection of nodes of cluster

Instance Method Summary collapse

Instance Method Details

#allObject



29
30
31
# File 'lib/fog/proxmox/compute/models/nodes.rb', line 29

def all
  load service.list_nodes
end

#get(id) ⇒ Object



33
34
35
# File 'lib/fog/proxmox/compute/models/nodes.rb', line 33

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