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