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