Class: Nl::Linux::Nftables::AttributeSets::RuleCompatAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::RuleCompatAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, Flags, Proto
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
-
#flags ⇒ Integer
bitmask of flags.
-
#proto ⇒ Integer
numeric value of the handled protocol.
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.
1445 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1445 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
1451 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1451 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#flags ⇒ Integer
bitmask of flags
1438 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1438 def flags; self[:"flags"]&.value; end |
#proto ⇒ Integer
numeric value of the handled protocol
1433 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1433 def proto; self[:"proto"]&.value; end |