Class: Nl::Linux::Tc::AttributeSets::MatchallAttrs

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

Defined Under Namespace

Classes: Act, Attribute, Classid, Flags, Pad, Pcnt

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#act ⇒ Array<AttributeSets::ActAttrs>

Returns:

See Also:



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

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

#classid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#flags ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#pcnt ⇒ Structs::TcMatchallPcnt

Returns:

See Also:



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

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