Class: Nl::Linux::Tc::AttributeSets::BasicAttrs

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

Defined Under Namespace

Classes: Act, Attribute, Classid, Ematches, Pad, Pcnt, Police

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#act ⇒ Array<AttributeSets::ActAttrs>

Returns:

See Also:



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

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

#classid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ematches ⇒ AttributeSets::EmatchAttrs

Returns:

See Also:



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

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

#pcnt ⇒ Structs::TcBasicPcnt

Returns:

See Also:



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

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

#police ⇒ AttributeSets::PoliceAttrs

Returns:

See Also:



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

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