Class: Nl::Linux::Ethtool::AttributeSets::FecStat

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

Defined Under Namespace

Classes: Attribute, CorrBits, Corrected, Hist, Pad, Uncorr

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#corr_bits ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#corrected ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#hist ⇒ Array<AttributeSets::FecHist>

Returns:

See Also:



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

def hist; self[:"hist"].map(&:value); end

#uncorr ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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