Class: Nl::Linux::Nftables::AttributeSets::VerdictAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::VerdictAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, Chain, ChainId, Code
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
jump target chain name.
-
#chain_id ⇒ Integer
jump target chain ID.
-
#code ⇒ Integer
nf_tables verdict.
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.
2866 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2866 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
2872 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2872 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#chain ⇒ String
jump target chain name
2854 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2854 def chain; self[:"chain"]&.value; end |
#chain_id ⇒ Integer
jump target chain ID
2859 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2859 def chain_id; self[:"chain_id"]&.value; end |
#code ⇒ Integer
nf_tables verdict
Known enum values are defined in Enums::VerdictCode.
2849 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 2849 def code; self[:"code"]&.value; end |