Class: Nl::Linux::Nftables::AttributeSets::ObjAttrs

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

Defined Under Namespace

Classes: Attribute, Data, Handle, Name, Pad, Table, Type, Use, Userdata

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#data ⇒ SubMessages::ObjData::Counter, ...

stateful object data



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

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

#handle ⇒ Integer

object handle

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

name of this expression type

Returns:

  • (String)

See Also:



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

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

#table ⇒ String

name of the table containing the expression

Returns:

  • (String)

See Also:



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

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

#type ⇒ Integer

stateful object type

Known enum values are defined in Enums::ObjectType.

Returns:

  • (Integer)

See Also:



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

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

#use ⇒ Integer

number of references to this expression

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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