Class: Fog::Compute::Libvirt::Networks

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/libvirt/models/compute/networks.rb

Instance Method Summary collapse

Instance Method Details

#all(filter = {}) ⇒ Object



12
13
14
# File 'lib/fog/libvirt/models/compute/networks.rb', line 12

def all(filter={})
  load(service.list_networks(filter))
end

#get(uuid) ⇒ Object



16
17
18
# File 'lib/fog/libvirt/models/compute/networks.rb', line 16

def get(uuid)
  self.all(:uuid => uuid).first
end