Class: Nl::Linux::Nftables::AttributeSets::ExprRejectAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::ExprRejectAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, IcmpCode, 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
- #icmp_code ⇒ Integer
-
#type ⇒ Integer
Known enum values are defined in Enums::RejectTypes.
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.
3666 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3666 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
3672 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3672 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#icmp_code ⇒ Integer
3659 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3659 def icmp_code; self[:"icmp_code"]&.value; end |
#type ⇒ Integer
Known enum values are defined in Enums::RejectTypes.
3655 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 3655 def type; self[:"type"]&.value; end |