class IbmPowerHmc::ManagedSystem

Managed System information

Constants

XMLMAP

Public Class Methods

new(doc) click to toggle source
Calls superclass method IbmPowerHmc::HmcObject::new
# File lib/ibm_power_hmc/objects.rb, line 66
def initialize(doc)
  super(doc)
  info = doc.elements["content/ManagedSystem:ManagedSystem"]
  get_values(info, XMLMAP)
end

Public Instance Methods

to_s() click to toggle source
# File lib/ibm_power_hmc/objects.rb, line 72
def to_s
  "sys name=#{@name} state=#{@state} ip=#{@ipaddr} mem=#{@memory}MB avail=#{@avail_mem}MB CPUs=#{@cpus} avail=#{@avail_cpus}"
end