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