Class: OVIRT::Quota

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

Instance Attribute Summary collapse

Attributes inherited from BaseObject

#client, #href, #id

Instance Method Summary collapse

Methods inherited from BaseObject

#parse_bool, #parse_version

Constructor Details

#initialize(client, xml) ⇒ Quota

Returns a new instance of Quota.



5
6
7
8
9
# 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

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/ovirt/quota.rb', line 3

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ovirt/quota.rb', line 3

def name
  @name
end