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