Class: Nl::Linux::Tc::AttributeSets::CodelAttrs

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

Defined Under Namespace

Classes: Attribute, CeThreshold, Ecn, Interval, Limit, Target

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#ce_threshold ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ecn ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#interval ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#limit ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#target ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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