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, line 5
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/quota.rb, line 12
def parse_xml_attributes!(xml)
  @desciption = ((xml/'description').first.text rescue nil)
end