Class: Nl::Linux::Ethtool::AttributeSets::StatsGrp

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

Defined Under Namespace

Classes: Attribute, HistBktHi, HistBktLow, HistRx, HistTx, HistVal, Id, Pad, SsId, Stat

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#hist_bkt_hi ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#hist_bkt_low ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#hist_rx ⇒ AttributeSets::StatsGrpHist

Returns:

See Also:



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

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

#hist_tx ⇒ AttributeSets::StatsGrpHist

Returns:

See Also:



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

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

#hist_val ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ss_id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#stat ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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