Class: AMT::Service::HardwareAsset::PortableBattery
- 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
-
#design_capacity ⇒ Object
readonly
:nodoc:.
-
#design_voltage ⇒ Object
readonly
:nodoc:.
-
#device_chemistry ⇒ Object
readonly
:nodoc:.
-
#device_name ⇒ Object
readonly
:nodoc:.
-
#location ⇒ Object
readonly
:nodoc:.
-
#manufacture_date ⇒ Object
readonly
:nodoc:.
-
#manufacturer ⇒ Object
readonly
:nodoc:.
-
#maximum_error_in_battery_data ⇒ Object
readonly
:nodoc:.
-
#oem_specific ⇒ Object
readonly
:nodoc:.
-
#sbds_version_number ⇒ Object
readonly
:nodoc:.
-
#serial_number ⇒ Object
readonly
:nodoc:.
Attributes inherited from Asset
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_capacity ⇒ Object (readonly)
:nodoc:
47 48 49 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47 def design_capacity @design_capacity end |
#design_voltage ⇒ Object (readonly)
:nodoc:
47 48 49 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47 def design_voltage @design_voltage end |
#device_chemistry ⇒ Object (readonly)
:nodoc:
47 48 49 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47 def device_chemistry @device_chemistry end |
#device_name ⇒ Object (readonly)
:nodoc:
48 49 50 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48 def device_name @device_name end |
#location ⇒ Object (readonly)
:nodoc:
48 49 50 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48 def location @location end |
#manufacture_date ⇒ Object (readonly)
:nodoc:
47 48 49 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47 def manufacture_date @manufacture_date end |
#manufacturer ⇒ Object (readonly)
:nodoc:
48 49 50 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 48 def manufacturer @manufacturer end |
#maximum_error_in_battery_data ⇒ Object (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_specific ⇒ Object (readonly)
:nodoc:
47 48 49 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47 def oem_specific @oem_specific end |
#sbds_version_number ⇒ Object (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_number ⇒ Object (readonly)
:nodoc:
47 48 49 |
# File 'lib/amt/service/hardware_asset/portable_battery.rb', line 47 def serial_number @serial_number end |