Class: Libvirt::Collection::InterfaceCollection

Inherits:
AbstractCollection show all
Defined in:
lib/libvirt/collection/interface_collection.rb

Overview

Represents a collection of interfaces. This is an enumerable (in the Ruby sense) object, but it is not directly an Array.

Instance Attribute Summary

Attributes inherited from AbstractCollection

#interface

Instance Method Summary collapse

Methods inherited from AbstractCollection

#initialize

Constructor Details

This class inherits a constructor from Libvirt::Collection::AbstractCollection

Instance Method Details

#activeArray<Interface>

Returns all the active interfaces for the connection which this collection belongs to.

Returns:

  • (Array<Interface>)


10
11
12
13
# File 'lib/libvirt/collection/interface_collection.rb', line 10

def active
  # TODO: Doesn't work on mac :) must dev on linux
  # read_array(:virConnectListInterfaces, :virConnectNumOfInterfaces, :string)
end