Class: Nl::Linux::Tc::AttributeSets::EtsAttrs

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

Defined Under Namespace

Classes: Attribute, Nbands, Nstrict, Priomap, PriomapBand, Quanta, QuantaBand

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:



9028
# File 'nl-linux/generated/nl/linux/tc.rb', line 9028

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



9034
# File 'nl-linux/generated/nl/linux/tc.rb', line 9034

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

Instance Method Details

#nbands ⇒ Integer

Returns:

  • (Integer)

See Also:



9001
# File 'nl-linux/generated/nl/linux/tc.rb', line 9001

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

#nstrict ⇒ Integer

Returns:

  • (Integer)

See Also:



9005
# File 'nl-linux/generated/nl/linux/tc.rb', line 9005

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

#priomap ⇒ AttributeSets::EtsAttrs

Returns:

See Also:



9017
# File 'nl-linux/generated/nl/linux/tc.rb', line 9017

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

#priomap_band ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



9021
# File 'nl-linux/generated/nl/linux/tc.rb', line 9021

def priomap_band; self[:"priomap_band"].map(&:value); end

#quanta ⇒ AttributeSets::EtsAttrs

Returns:

See Also:



9009
# File 'nl-linux/generated/nl/linux/tc.rb', line 9009

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

#quanta_band ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



9013
# File 'nl-linux/generated/nl/linux/tc.rb', line 9013

def quanta_band; self[:"quanta_band"].map(&:value); end