Class: Nl::Linux::Nftables::AttributeSets::CompatMatchAttrs

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

Defined Under Namespace

Classes: Attribute, Info, Name, Rev

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:



3991
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3991

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



3997
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3997

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

Instance Method Details

#info ⇒ String

Returns:

  • (String)

See Also:



3984
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3984

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

#name ⇒ String

Returns:

  • (String)

See Also:



3976
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3976

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

#rev ⇒ Integer

Returns:

  • (Integer)

See Also:



3980
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3980

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