Class: Nl::Linux::Ethtool::AttributeSets::Linkmodes

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

Defined Under Namespace

Classes: Attribute, Autoneg, Duplex, Header, Lanes, MasterSlaveCfg, MasterSlaveState, Ours, Peer, RateMatching, Speed

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#autoneg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#duplex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#lanes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_cfg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_state ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ours ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#peer ⇒ AttributeSets::Bitset

Returns:

See Also:



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

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

#rate_matching ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#speed ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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