Class: Nl::Linux::Ethtool::AttributeSets::Eee

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

Defined Under Namespace

Classes: Active, Attribute, Enabled, Header, ModesOurs, ModesPeer, TxLpiEnabled, TxLpiTimer

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#active ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#enabled ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#modes_ours ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#modes_peer ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#tx_lpi_enabled ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tx_lpi_timer ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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