Class: OVIRT::Quota
- Inherits:
-
BaseObject
- Object
- BaseObject
- OVIRT::Quota
- Defined in:
- lib/ovirt/quota.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from BaseObject
Instance Method Summary collapse
-
#initialize(client, xml) ⇒ Quota
constructor
A new instance of Quota.
Methods inherited from BaseObject
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/ovirt/quota.rb', line 3 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ovirt/quota.rb', line 3 def name @name end |