Class: Nl::Linux::Ethtool::AttributeSets::ModuleEeprom

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

Defined Under Namespace

Classes: Attribute, Bank, Data, Header, I2cAddress, Length, Offset, Page

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#bank ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#data ⇒ String

Returns:

See Also:



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

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

#header ⇒ AttributeSets::Header

Returns:

See Also:



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

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

#i2c_address ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#length ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#offset ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#page ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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