Class: Nl::Linux::Nftables::AttributeSets::ObjAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::ObjAttrs
- 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
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#data ⇒ SubMessages::ObjData::Counter, ...
stateful object data.
-
#handle ⇒ Integer
object handle.
-
#name ⇒ String
name of this expression type.
-
#table ⇒ String
name of the table containing the expression.
-
#type ⇒ Integer
stateful object type.
-
#use ⇒ Integer
number of references to this expression.
-
#userdata ⇒ String
user data.
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.
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.
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
2337 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2337 def handle; self[:"handle"]&.value; end |
#name ⇒ String
name of this expression type
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
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.
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
2332 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2332 def use; self[:"use"]&.value; end |
#userdata ⇒ String
user data
2342 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2342 def userdata; self[:"userdata"]&.value; end |