Class: Nl::Linux::Ethtool::AttributeSets::Header
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Ethtool::AttributeSets::Header
- Defined in:
- nl-linux/generated/nl/linux/ethtool.rb
Defined Under Namespace
Classes: Attribute, DevIndex, DevName, Flags, PhyIndex
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
- #dev_index ⇒ Integer
- #dev_name ⇒ String
-
#flags ⇒ Integer
Known flags are defined in Flags::HeaderFlags.
- #phy_index ⇒ Integer
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.
215 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 215 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
221 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 221 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#dev_index ⇒ Integer
195 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 195 def dev_index; self[:"dev_index"]&.value; end |
#dev_name ⇒ String
199 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 199 def dev_name; self[:"dev_name"]&.value; end |
#flags ⇒ Integer
Known flags are defined in Flags::HeaderFlags.
204 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 204 def flags; self[:"flags"]&.value; end |
#phy_index ⇒ Integer
208 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 208 def phy_index; self[:"phy_index"]&.value; end |