Class: Nl::Linux::Ethtool::AttributeSets::ModuleFwFlash

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Defined Under Namespace

Classes: Attribute, Done, FileName, Header, Password, Status, StatusMsg, Total

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

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.

Parameters:

  • name (Symbol)

Returns:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#done ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def done; self[:"done"]&.value; end

#file_name ⇒ String

Returns:

See Also:



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

def file_name; self[:"file_name"]&.value; end

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#password ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def password; self[:"password"]&.value; end

#status ⇒ Integer

Known enum values are defined in Enums::ModuleFwFlashStatus.

Returns:

  • (Integer)

See Also:



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

def status; self[:"status"]&.value; end

#status_msg ⇒ String

Returns:

See Also:



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

def status_msg; self[:"status_msg"]&.value; end

#total ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def total; self[:"total"]&.value; end