Class: Fog::Compute::Libvirt::Interfaces

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

Instance Method Summary collapse

Instance Method Details

#all(filter = {}) ⇒ Object



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

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

#get(name) ⇒ Object



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

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