Class: Nl::Linux::Nftables::AttributeSets::ExprTproxyAttrs

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

Defined Under Namespace

Classes: Attribute, Family, RegAddr, RegPort

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#family ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reg_addr ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reg_port ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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