Class: AMT::Service::HardwareAsset::MemoryModule

Inherits:
Asset
  • Object
show all
Defined in:
lib/amt/service/hardware_asset/memory_module.rb

Overview

Represents a single physical memory module of the system managed by the AMT device.

There is at most one instance of this class for every physical memory module in the hardware asset inventory of each AMT device.

Available fields:

size

The size of the memory device. If the value is 0, then no memory module is installed in this socket. If the value is FFFFh, then the size is unknown. Also see #installed?

form_factor

The implementation form factor for this memory module (an instance of FormFactor).

type

The type of memory used in the module (an instance of Type).

type_detail

Additional detail on the memory module (an instance of TypeDetail).

speed

The speed of the memory module in MHz. If the value is 0, then the value is unknown.

manufacturer

The name of the memory module manufacturer.

serial_number

The serial number of the memory module.

asset_tag

The asset tag of the memory module.

part_number

The part number of the memory module.

Defined Under Namespace

Classes: FormFactor, Type, TypeDetail

Instance Attribute Summary

Attributes inherited from Asset

#structure_version

Instance Method Summary collapse

Methods inherited from Asset

#initialize, set_unpack_data, unpack_code, unpack_repr, unpack_size

Constructor Details

This class inherits a constructor from AMT::Service::HardwareAsset::Asset

Instance Method Details

#inspectObject

:nodoc:



83
84
85
# File 'lib/amt/service/hardware_asset/memory_module.rb', line 83

def inspect # :nodoc:
  installed? ? super : "#<#{self.class.name} not installed>"
end

#installed?Boolean

Return true if the memory module is installed in the socket.

Returns:

  • (Boolean)


79
80
81
# File 'lib/amt/service/hardware_asset/memory_module.rb', line 79

def installed?
  @size != 0
end