Class: Nl::Linux::Ethtool::Messages::DoModuleGetReply

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Overview

Get module params.

Constant Summary collapse

TYPE =
35
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Module
ATTRIBUTES =
Ractor.make_shareable(%i[header power_mode_policy power_mode])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#header ⇒ AttributeSets::Header



8210
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 8210

def header; attributes[:"header"]&.value; end

#power_mode ⇒ Integer

Returns:

  • (Integer)

See Also:



8218
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 8218

def power_mode; attributes[:"power_mode"]&.value; end

#power_mode_policy ⇒ Integer

Returns:

  • (Integer)

See Also:



8214
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 8214

def power_mode_policy; attributes[:"power_mode_policy"]&.value; end