Class: Nl::Linux::Team::AttributeSets::AttrPort

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

Defined Under Namespace

Classes: Attribute, Changed, Duplex, Ifindex, Linkup, Removed, 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:



370
# File 'nl-linux/generated/nl/linux/team.rb', line 370

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



376
# File 'nl-linux/generated/nl/linux/team.rb', line 376

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

Instance Method Details

#changed ⇒ Integer

Returns:

  • (Integer)

See Also:



347
# File 'nl-linux/generated/nl/linux/team.rb', line 347

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

#duplex ⇒ Integer

Returns:

  • (Integer)

See Also:



359
# File 'nl-linux/generated/nl/linux/team.rb', line 359

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

#ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



343
# File 'nl-linux/generated/nl/linux/team.rb', line 343

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

#linkup ⇒ Integer

Returns:

  • (Integer)

See Also:



351
# File 'nl-linux/generated/nl/linux/team.rb', line 351

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

#removed ⇒ Integer

Returns:

  • (Integer)

See Also:



363
# File 'nl-linux/generated/nl/linux/team.rb', line 363

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

#speed ⇒ Integer

Returns:

  • (Integer)

See Also:



355
# File 'nl-linux/generated/nl/linux/team.rb', line 355

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