Class: Nl::Linux::Nftables::AttributeSets::SetelemAttrs

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

Defined Under Namespace

Classes: Attribute, Data, Expiration, Expr, Expressions, Flags, Key, KeyEnd, Objref, Timeout, Userdata

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#data ⇒ AttributeSets::DataAttrs

data value of mapping

Returns:

See Also:



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

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

#expiration ⇒ Integer

expiration time

Returns:

  • (Integer)

See Also:



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

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

#expr ⇒ AttributeSets::ExprAttrs

expression

Returns:

See Also:



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

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

#expressions ⇒ AttributeSets::ExprListAttrs

list of expressions



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

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

#flags ⇒ String

bitmask of nft_set_elem_flags

Returns:

  • (String)

See Also:



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

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

#key ⇒ AttributeSets::DataAttrs

key value

Returns:

See Also:



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

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

#key_end ⇒ AttributeSets::DataAttrs

closing key value

Returns:

See Also:



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

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

#objref ⇒ String

stateful object reference

Returns:

  • (String)

See Also:



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

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

#timeout ⇒ Integer

timeout value

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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