Class: Nl::Linux::Tc::AttributeSets::RouteAttrs

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

Defined Under Namespace

Classes: Act, Attribute, Classid, From, Iif, Police, To

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#act ⇒ Array<AttributeSets::ActAttrs>

Returns:

See Also:



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

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

#classid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#from ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#iif ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#police ⇒ AttributeSets::PoliceAttrs

Returns:

See Also:



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

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

#to ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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