Class: Nl::Linux::Ethtool::AttributeSets::Tsconfig

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

Defined Under Namespace

Classes: Attribute, Header, HwtstampFlags, HwtstampProvider, RxFilters, TxTypes

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#hwtstamp_flags ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#hwtstamp_provider ⇒ AttributeSets::TsHwtstampProvider



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

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

#rx_filters ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#tx_types ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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