Class: Nl::Linux::Ethtool::AttributeSets::Channels

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

Defined Under Namespace

Classes: Attribute, CombinedCount, CombinedMax, Header, OtherCount, OtherMax, RxCount, RxMax, TxCount, TxMax

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#combined_count ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#combined_max ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#other_count ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#other_max ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rx_count ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rx_max ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tx_count ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tx_max ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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