Class: AMT::Service::HardwareAsset::PortableBattery

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

Overview

Represents a portable battery of the system managed by the AMT device.

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

Available fields:

oem_specific

Contains OEM- or BIOS vendor-specific information.

manufacturer

The name of the company that manufactured the battery.

manufacture_date

The date the battery was manufactured.

design_capacity

The design capacity of the battery in mWatt-hours. If the value is 0, then the capacity is unknown.

design_voltage

The design voltage of the battery in mVolts. If the value is 0, then the voltage is unknown.

serial_number

The serial number of the battery.

device_chemistry

Identifies the battery chemistry (an instance of DeviceChemistry).

maximum_error_in_battery_data

The maximum error (as a percentage in the range 0 to 100) in the Watt-hour data reported by the battery, indicating an upper bound on how much additional energy the battery might have above the energy it reports having. If the value is FFh, then the maximum error is unknown.

sbds_version_number

The Smart Battery Data Specification version number supported by this battery. If the string is empty, then the battery does not support the function.

location

The location of the battery.

device_name

The name of the battery.

Defined Under Namespace

Classes: DeviceChemistry

Instance Attribute Summary collapse

Attributes inherited from Asset

#structure_version

Method Summary

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 Attribute Details

#design_capacityObject (readonly)

:nodoc:



47
48
49
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47

def design_capacity
  @design_capacity
end

#design_voltageObject (readonly)

:nodoc:



47
48
49
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47

def design_voltage
  @design_voltage
end

#device_chemistryObject (readonly)

:nodoc:



47
48
49
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47

def device_chemistry
  @device_chemistry
end

#device_nameObject (readonly)

:nodoc:



48
49
50
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48

def device_name
  @device_name
end

#locationObject (readonly)

:nodoc:



48
49
50
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48

def location
  @location
end

#manufacture_dateObject (readonly)

:nodoc:



47
48
49
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47

def manufacture_date
  @manufacture_date
end

#manufacturerObject (readonly)

:nodoc:



48
49
50
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48

def manufacturer
  @manufacturer
end

#maximum_error_in_battery_dataObject (readonly)

:nodoc:



48
49
50
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48

def maximum_error_in_battery_data
  @maximum_error_in_battery_data
end

#oem_specificObject (readonly)

:nodoc:



47
48
49
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47

def oem_specific
  @oem_specific
end

#sbds_version_numberObject (readonly)

:nodoc:



48
49
50
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48

def sbds_version_number
  @sbds_version_number
end

#serial_numberObject (readonly)

:nodoc:



47
48
49
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47

def serial_number
  @serial_number
end