Class: Nl::Linux::Nftables::AttributeSets::CompatAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::CompatAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, Name, Rev, Type
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
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.
4050 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4050 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
4056 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4056 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#name ⇒ String
4035 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4035 def name; self[:"name"]&.value; end |
#rev ⇒ Integer
4039 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4039 def rev; self[:"rev"]&.value; end |
#type ⇒ Integer
4043 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4043 def type; self[:"type"]&.value; end |