Class: Nl::Linux::Tc::AttributeSets::TbfAttrs

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

Defined Under Namespace

Classes: Attribute, Burst, Pad, Parms, Pburst, Prate64, Ptab, Rate64, Rtab

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#burst ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#parms ⇒ Structs::TcTbfQopt

Returns:

See Also:



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

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

#pburst ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#prate64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ptab ⇒ String

Returns:

  • (String)

See Also:



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

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

#rate64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rtab ⇒ String

Returns:

  • (String)

See Also:



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

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