Sha256: 42af84ecce0fbc1ef0bc3fca96d45e9832a6b512f032789b488ddd82cfb2dc83
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
module OVIRT class Cluster < BaseObject attr_reader :description, :datacenter, :version def initialize(client, xml) super(client, xml[:id], xml[:href], (xml/'name').first.text) parse_xml_attributes!(xml) self end private def parse_xml_attributes!(xml) @description = ((xml/'description').first.text rescue nil) @version = parse_version(xml) unless (xml/'data_center').empty? @datacenter = Link::new(@client, (xml/'data_center').first[:id], (xml/'data_center').first[:href]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbovirt-0.0.4 | lib/ovirt/cluster.rb |