Class: Nl::Linux::Nftables::AttributeSets::ExprCtAttrs

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

Defined Under Namespace

Classes: Attribute, Direction, Dreg, Key, Sreg

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#direction ⇒ Integer

Known enum values are defined in Enums::CtDirection.

Returns:

  • (Integer)

See Also:



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

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

#dreg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#key ⇒ Integer

Known enum values are defined in Enums::CtKeys.

Returns:

  • (Integer)

See Also:



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

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

#sreg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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