Class: Nl::Linux::Tc::AttributeSets::PoliceAttrs

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

Defined Under Namespace

Classes: Attribute, Avrate, Pad, Peakrate, Peakrate64, Pktburst64, Pktrate64, Rate, Rate64, Result, Tbf, Tm

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#avrate ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#peakrate ⇒ String

Returns:

  • (String)

See Also:



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

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

#peakrate64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#pktburst64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#pktrate64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rate ⇒ String

Returns:

  • (String)

See Also:



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

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

#rate64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#result ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tbf ⇒ Structs::TcPolice

Returns:

See Also:



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

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

#tm ⇒ Structs::TcfT

Returns:

See Also:



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

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