class OVIRT::Quota
Attributes
description[R]
name[R]
Public Class Methods
new(client, xml)
click to toggle source
Calls superclass method
OVIRT::BaseObject::new
# File lib/ovirt/quota.rb 5 def initialize(client, xml) 6 super(client, xml[:id], xml[:href], (xml/'name').first.text) 7 parse_xml_attributes!(xml) 8 self 9 end
Private Instance Methods
parse_xml_attributes!(xml)
click to toggle source
# File lib/ovirt/quota.rb 12 def parse_xml_attributes!(xml) 13 @desciption = ((xml/'description').first.text rescue nil) 14 end