class OVIRT::DiskProfile
Public Class Methods
new(client, xml)
click to toggle source
Calls superclass method
OVIRT::BaseObject.new
# File lib/ovirt/disk_profile.rb, line 3 def initialize(client, xml) super(client, xml[:id], xml[:href], (xml/'name').first.text) parse_xml_attributes!(xml) self end
Private Instance Methods
parse_xml_attributes!(xml)
click to toggle source
# File lib/ovirt/disk_profile.rb, line 10 def parse_xml_attributes!(xml) @disk_profile = ((xml/'disk_profile').first[:id] rescue nil) @name = ((xml/'name').first.text rescue nil) @storage_domain = ((xml/'storagedomains').first[:id] rescue nil) end