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 3 def initialize(client, xml) 4 super(client, xml[:id], xml[:href], (xml/'name').first.text) 5 parse_xml_attributes!(xml) 6 self 7 end
Private Instance Methods
parse_xml_attributes!(xml)
click to toggle source
# File lib/ovirt/disk_profile.rb 10 def parse_xml_attributes!(xml) 11 @disk_profile = ((xml/'disk_profile').first[:id] rescue nil) 12 @name = ((xml/'name').first.text rescue nil) 13 @storage_domain = ((xml/'storagedomains').first[:id] rescue nil) 14 end