class IbmPowerHmc::LogicalPartition
Logical Partition information
Constants
- XMLMAP
Attributes
sys_uuid[R]
Public Class Methods
new(doc)
click to toggle source
Calls superclass method
IbmPowerHmc::HmcObject::new
# File lib/ibm_power_hmc/objects.rb, line 92 def initialize(doc) super(doc) info = doc.elements["content/LogicalPartition:LogicalPartition"] sys_href = info.elements["AssociatedManagedSystem"].attributes["href"] @sys_uuid = URI(sys_href).path.split('/').last get_values(info, XMLMAP) end
Public Instance Methods
to_s()
click to toggle source
# File lib/ibm_power_hmc/objects.rb, line 100 def to_s "lpar name=#{@name} id=#{@id} state=#{@state} type=#{@type} memory=#{@memory}MB dedicated cpus=#{@dedicated}" end