Class: OVIRT::DataCenter

Inherits:
BaseObject show all
Defined in:
lib/ovirt/datacenter.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) ⇒ DataCenter

Returns a new instance of DataCenter.



6
7
8
9
10
# File 'lib/ovirt/datacenter.rb', line 6

def initialize(client, xml)
  super(client, xml[:id], xml[:href], (xml/'name').first.text)
  parse_xml_attributes!(xml)
  self
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/ovirt/datacenter.rb', line 4

def description
  @description
end

#localObject (readonly)

Returns the value of attribute local.



4
5
6
# File 'lib/ovirt/datacenter.rb', line 4

def local
  @local
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/ovirt/datacenter.rb', line 4

def status
  @status
end

#storage_formatObject (readonly)

Returns the value of attribute storage_format.



4
5
6
# File 'lib/ovirt/datacenter.rb', line 4

def storage_format
  @storage_format
end

#storage_typeObject (readonly)

Returns the value of attribute storage_type.



4
5
6
# File 'lib/ovirt/datacenter.rb', line 4

def storage_type
  @storage_type
end

#supported_versionsObject (readonly)

Returns the value of attribute supported_versions.



4
5
6
# File 'lib/ovirt/datacenter.rb', line 4

def supported_versions
  @supported_versions
end

#versionObject (readonly)

Returns the value of attribute version.



4
5
6
# File 'lib/ovirt/datacenter.rb', line 4

def version
  @version
end