Class: OVIRT::DiskProfile
- Inherits:
-
BaseObject
- Object
- BaseObject
- OVIRT::DiskProfile
- Defined in:
- lib/ovirt/disk_profile.rb
Instance Attribute Summary
Attributes inherited from BaseObject
Instance Method Summary collapse
-
#initialize(client, xml) ⇒ DiskProfile
constructor
A new instance of DiskProfile.
Methods inherited from BaseObject
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 |