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