Class: Nl::Linux::Ethtool::AttributeSets::Header

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

Defined Under Namespace

Classes: Attribute, DevIndex, DevName, Flags, PhyIndex

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#dev_index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#dev_name ⇒ String

Returns:

See Also:



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

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

#flags ⇒ Integer

Known flags are defined in Flags::HeaderFlags.

Returns:

  • (Integer)

See Also:



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

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

#phy_index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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