Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Ovirt::Interfaces

Attributes

vm[RW]

Public Instance Methods

all(filters = {}) click to toggle source
# File lib/fog/ovirt/models/compute/interfaces.rb, line 14
def all(filters = {})
  requires :vm
  if vm.is_a? Fog::Compute::Ovirt::Server
    load service.list_vm_interfaces(vm.id)
  elsif vm.is_a? Fog::Compute::Ovirt::Template
    load service.list_template_interfaces(vm.id)
  else
    raise 'interfaces should have vm or template'
  end
end
get(id) click to toggle source
# File lib/fog/ovirt/models/compute/interfaces.rb, line 25
def get(id)
  new service.get_interface(id)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.