Class: Libvirt::Collection::InterfaceCollection
- Inherits:
-
AbstractCollection
- Object
- AbstractCollection
- Libvirt::Collection::InterfaceCollection
- 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
Instance Method Summary collapse
-
#active ⇒ Array<Interface>
Returns all the active interfaces for the connection which this collection belongs to.
Methods inherited from AbstractCollection
Constructor Details
This class inherits a constructor from Libvirt::Collection::AbstractCollection
Instance Method Details
#active ⇒ Array<Interface>
Returns all the active interfaces for the connection which this collection belongs to.
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 |