Class: Nl::Linux::Ethtool::AttributeSets::Linkinfo

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

Defined Under Namespace

Classes: Attribute, Header, Phyaddr, Port, TpMdix, TpMdixCtrl, Transceiver

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#phyaddr ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#port ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tp_mdix ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tp_mdix_ctrl ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#transceiver ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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