Class: OVIRT::OperatingSystem
- Inherits:
-
BaseObject
- Object
- BaseObject
- OVIRT::OperatingSystem
- Defined in:
- lib/ovirt/operating_system.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Attributes inherited from BaseObject
Instance Method Summary collapse
-
#initialize(client, xml) ⇒ OperatingSystem
constructor
A new instance of OperatingSystem.
Methods inherited from BaseObject
Constructor Details
#initialize(client, xml) ⇒ OperatingSystem
Returns a new instance of OperatingSystem.
5 6 7 8 9 |
# File 'lib/ovirt/operating_system.rb', line 5 def initialize(client, xml) super(client, xml[:id], xml[:href], (xml/'name').text) @description = (xml/'description').text self end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/ovirt/operating_system.rb', line 3 def description @description end |