class Fog::Network::Proxmox::Nodes
class Nodes Collection of nodes of cluster
Public Instance Methods
all(_options = {})
click to toggle source
# File lib/fog/network/proxmox/models/nodes.rb, line 29 def all(_options = {}) load_response(service.list_nodes, 'nodes') end
find_by_id(id)
click to toggle source
# File lib/fog/network/proxmox/models/nodes.rb, line 33 def find_by_id(id) cached_node = find { |node| node.node == id } return cached_node if cached_node node_hash = service.get_node(id) Fog::Network::Proxmox::Node.new( node_hash.merge(service: service, node: id) ) end