Class: Nl::Linux::Ethtool::AttributeSets::Linkstate

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

Defined Under Namespace

Classes: Attribute, ExtDownCnt, ExtState, ExtSubstate, Header, Link, Sqi, SqiMax

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#ext_down_cnt ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ext_state ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ext_substate ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

Returns:

  • (Integer)

See Also:



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

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

#sqi ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#sqi_max ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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