class Fog::Proxmox::Network::Networks

class Networks Collection of nodes of cluster

Public Instance Methods

all(filters = {}) click to toggle source
# File lib/fog/proxmox/network/models/networks.rb, line 35
def all(filters = {})
  requires :node_id
  path_params = { node: node_id }
  query_params = filters
  load service.list_networks(path_params, query_params)
end
get(id) click to toggle source
# File lib/fog/proxmox/network/models/networks.rb, line 42
def get(id)
  all.find { |network| network.identity == id }
end
new(attributes = {}) click to toggle source
Calls superclass method
# File lib/fog/proxmox/network/models/networks.rb, line 30
def new(attributes = {})
  requires :node_id
  super({ node_id: node_id }.merge(attributes))
end