class IbmPowerHmc::VirtualIOServer
VIOS 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 118 def initialize(doc) super(doc) info = doc.elements["content/VirtualIOServer:VirtualIOServer"] 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 126 def to_s "vios name=#{@name} id=#{@id} state=#{@state} type=#{@type} memory=#{@memory}MB dedicated cpus=#{@dedicated}" end