Class: Nl::Linux::Ethtool::AttributeSets::Features

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

Defined Under Namespace

Classes: Active, Attribute, Header, Hw, Nochange, Wanted

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#active ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#hw ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#nochange ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#wanted ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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