Class: Nl::Linux::Nftables::AttributeSets::ExprObjrefAttrs

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

Defined Under Namespace

Classes: Attribute, ImmName, ImmType, SetId, SetName, SetSreg

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#imm_name ⇒ String

object name

Returns:

  • (String)

See Also:



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

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

#imm_type ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#set_id ⇒ Integer

id of object map

Returns:

  • (Integer)

See Also:



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

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

#set_name ⇒ String

name of object map

Returns:

  • (String)

See Also:



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

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

#set_sreg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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