Class: Nl::Linux::Devlink::AttributeSets::DlAttrStats
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Devlink::AttributeSets::DlAttrStats
- Defined in:
- nl-linux/generated/nl/linux/devlink.rb
Defined Under Namespace
Classes: Attribute, StatsRxBytes, StatsRxDropped, StatsRxPackets
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.
4265 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4265 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
4271 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4271 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#stats_rx_bytes ⇒ Integer
4254 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4254 def stats_rx_bytes; self[:"stats_rx_bytes"]&.value; end |
#stats_rx_dropped ⇒ Integer
4258 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4258 def stats_rx_dropped; self[:"stats_rx_dropped"]&.value; end |
#stats_rx_packets ⇒ Integer
4250 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4250 def stats_rx_packets; self[:"stats_rx_packets"]&.value; end |