Class Vmstat::NetworkInterface
In: lib/vmstat/network_interface.rb
Parent: Struct.new(:name, :in_bytes, :in_errors, :in_drops, :out_bytes, :out_errors, :type)

Gathered the network interface information. @attr [Symbol] name the system name for the network interface. @attr [Fixnum] in_bytes the number od bytes that where received inbound. @attr [Fixnum] in_errors the number of errors that where received inbound. @attr [Fixnum] in_drops the number of drops that where received inbound. @attr [Fixnum] out_bytes the number od bytes that where send outbound. @attr [Fixnum] out_errors the number od errors that where send outbound. @attr [Fixnum] type the type of the interface (bsd numbers)

Methods

Constants

ETHERNET_TYPE = 0x06   The type of ethernet devices on freebsd/mac os x
LOOPBACK_TYPE = 0x18   The type of loopback devices on freebsd/mac os x

Public Instance methods

Checks if this network interface is a ethernet device. @return [TrueClass, FalseClass] true if it is a ethernet device, false

  otherwise.

Checks if this network interface is a loopback device. @return [TrueClass, FalseClass] true if it is a loopback device, false

  otherwise.

[Validate]