Class: Nl::Linux::Nftables::AttributeSets::RuleAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::RuleAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, Chain, ChainId, Compat, Expressions, Handle, Id, Position, PositionId, Table, Userdata
Constant Summary
Constants inherited from AttributeSet
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
-
#chain ⇒ String
name of the chain containing the rule.
-
#chain_id ⇒ Integer
add the rule to chain by ID, alternative to chain name.
-
#compat ⇒ AttributeSets::RuleCompatAttrs
compatibility specifications of the rule.
-
#expressions ⇒ AttributeSets::ExprListAttrs
list of expressions.
-
#handle ⇒ Integer
numeric handle of the rule.
-
#id ⇒ Integer
uniquely identifies a rule in a transaction.
-
#position ⇒ Integer
numeric handle of the previous rule.
-
#position_id ⇒ Integer
transaction unique identifier of the previous rule.
-
#table ⇒ String
name of the table containing the rule.
-
#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.
1306 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1306 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
1312 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1312 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#chain ⇒ String
name of the chain containing the rule
1259 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1259 def chain; self[:"chain"]&.value; end |
#chain_id ⇒ Integer
add the rule to chain by ID, alternative to chain name
1299 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1299 def chain_id; self[:"chain_id"]&.value; end |
#compat ⇒ AttributeSets::RuleCompatAttrs
compatibility specifications of the rule
1274 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1274 def compat; self[:"compat"]&.value; end |
#expressions ⇒ AttributeSets::ExprListAttrs
list of expressions
1269 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1269 def expressions; self[:"expressions"]&.value; end |
#handle ⇒ Integer
numeric handle of the rule
1264 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1264 def handle; self[:"handle"]&.value; end |
#id ⇒ Integer
uniquely identifies a rule in a transaction
1289 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1289 def id; self[:"id"]&.value; end |
#position ⇒ Integer
numeric handle of the previous rule
1279 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1279 def position; self[:"position"]&.value; end |
#position_id ⇒ Integer
transaction unique identifier of the previous rule
1294 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1294 def position_id; self[:"position_id"]&.value; end |
#table ⇒ String
name of the table containing the rule
1254 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1254 def table; self[:"table"]&.value; end |
#userdata ⇒ String
user data
1284 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1284 def userdata; self[:"userdata"]&.value; end |