Class: Nl::Linux::Ethtool::AttributeSets::FecHist
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Ethtool::AttributeSets::FecHist
- Defined in:
- nl-linux/generated/nl/linux/ethtool.rb
Defined Under Namespace
Classes: Attribute, BinHigh, BinLow, BinVal, BinValPerLane, Pad
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
-
#bin_high ⇒ Integer
High bound of FEC bin (inclusive).
-
#bin_low ⇒ Integer
Low bound of FEC bin (inclusive).
-
#bin_val ⇒ Integer
Error count in the bin (optional if per-lane values exist).
-
#bin_val_per_lane ⇒ Array<Integer>
An array of per-lane error counters in the bin (optional).
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.
3495 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 3495 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
3501 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 3501 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#bin_high ⇒ Integer
High bound of FEC bin (inclusive)
3478 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 3478 def bin_high; self[:"bin_high"]&.value; end |
#bin_low ⇒ Integer
Low bound of FEC bin (inclusive)
3473 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 3473 def bin_low; self[:"bin_low"]&.value; end |
#bin_val ⇒ Integer
Error count in the bin (optional if per-lane values exist)
3483 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 3483 def bin_val; self[:"bin_val"]&.value; end |
#bin_val_per_lane ⇒ Array<Integer>
An array of per-lane error counters in the bin (optional)
3488 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 3488 def bin_val_per_lane; self[:"bin_val_per_lane"]&.value; end |