Class: Nl::Linux::Tc::AttributeSets::FwAttrs

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

Defined Under Namespace

Classes: Act, Attribute, Classid, Indev, Mask, 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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#act ⇒ Array<AttributeSets::ActAttrs>

Returns:

See Also:



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

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

#classid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#indev ⇒ String

Returns:

  • (String)

See Also:



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

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

#mask ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#police ⇒ AttributeSets::PoliceAttrs

Returns:

See Also:



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

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