Sha256: dd0dacbea6ba99cbc2714dc793ffe842c8ab59996077196c98ac0db9d06e2570
Contents?: true
Size: 505 Bytes
Versions: 15
Compression:
Stored size: 505 Bytes
Contents
module OVIRT class Host < BaseObject attr_reader :description, :status, :cluster 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) @status = (xml/'status').first.text @clister = Link::new(@client, (xml/'cluster').first[:id], (xml/'cluster').first[:href]) end end end
Version data entries
15 entries across 15 versions & 1 rubygems