Class: Nl::Linux::Ethtool::AttributeSets::Strset

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

Defined Under Namespace

Classes: Attribute, CountsOnly, Header, Stringsets

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#counts_only ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#stringsets ⇒ AttributeSets::Stringsets

Returns:

See Also:



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

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