Class: OVIRT::DiskProfile

Inherits:
BaseObject show all
Defined in:
lib/ovirt/disk_profile.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#client, #href, #id, #name

Instance Method Summary collapse

Methods inherited from BaseObject

#parse_bool, #parse_version

Constructor Details

#initialize(client, xml) ⇒ DiskProfile

Returns a new instance of DiskProfile.



3
4
5
6
7
# 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