Class: Nl::Linux::Ethtool::AttributeSets::MseSnapshot

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Overview

MSE snapshot attribute set

Defined Under Namespace

Classes: Attribute, AverageMse, PeakMse, WorstPeakMse

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



5520
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5520

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



5526
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5526

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#average_mse ⇒ Integer

Returns:

  • (Integer)

See Also:



5505
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5505

def average_mse; self[:"average_mse"]&.value; end

#peak_mse ⇒ Integer

Returns:

  • (Integer)

See Also:



5509
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5509

def peak_mse; self[:"peak_mse"]&.value; end

#worst_peak_mse ⇒ Integer

Returns:

  • (Integer)

See Also:



5513
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5513

def worst_peak_mse; self[:"worst_peak_mse"]&.value; end