Class: Nl::Linux::Ethtool::AttributeSets::Fec

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

Defined Under Namespace

Classes: Active, Attribute, Auto, Header, Modes, Stats

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#active ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#auto ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#modes ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#stats ⇒ AttributeSets::FecStat

Returns:

See Also:



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

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