Class: Nl::Linux::Nftables::AttributeSets::RangeAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::RangeAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, FromData, Op, Sreg, ToData
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
-
#from_data ⇒ AttributeSets::DataAttrs
data range from.
-
#op ⇒ Integer
cmp operation.
-
#sreg ⇒ Integer
source register of data to compare.
-
#to_data ⇒ AttributeSets::DataAttrs
data range to.
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.
602 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 602 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
608 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 608 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#from_data ⇒ AttributeSets::DataAttrs
data range from
590 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 590 def from_data; self[:"from_data"]&.value; end |
#op ⇒ Integer
cmp operation
Known enum values are defined in Enums::RangeOps.
585 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 585 def op; self[:"op"]&.value; end |
#sreg ⇒ Integer
source register of data to compare
Known enum values are defined in Enums::Registers.
578 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 578 def sreg; self[:"sreg"]&.value; end |
#to_data ⇒ AttributeSets::DataAttrs
data range to
595 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 595 def to_data; self[:"to_data"]&.value; end |