Class: OVIRT::Network

Inherits:
BaseObject show all
Defined in:
lib/ovirt/network.rb

Instance Attribute Summary collapse

Attributes inherited from BaseObject

#client, #href, #id, #name

Instance Method Summary collapse

Methods inherited from BaseObject

#parse_bool, #parse_version

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

#clusterObject (readonly)

Returns the value of attribute cluster.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def cluster
  @cluster
end

#datacenterObject (readonly)

Returns the value of attribute datacenter.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def datacenter
  @datacenter
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def description
  @description
end

#mtuObject (readonly)

Returns the value of attribute mtu.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def mtu
  @mtu
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def status
  @status
end

#stpObject (readonly)

Returns the value of attribute stp.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def stp
  @stp
end

#usagesObject (readonly)

Returns the value of attribute usages.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def usages
  @usages
end

#vlan_idObject (readonly)

Returns the value of attribute vlan_id.



3
4
5
# File 'lib/ovirt/network.rb', line 3

def vlan_id
  @vlan_id
end