Sha256: c0d7ff5fae25af43e9311e4db2c5571c9716a26c736416b2bf8e7b39abead5b4
Contents?: true
Size: 405 Bytes
Versions: 12
Compression:
Stored size: 405 Bytes
Contents
module OVIRT class TemplateVersion attr_reader :base_template, :version_number, :version_name def initialize(xml) parse_xml_attributes(xml) if xml end def parse_xml_attributes(xml) @base_template = (xml/"base_template").first[:id] @version_number = (xml/"version_number").first.text @version_name = ((xml/"version_name").first.text rescue nil) end end end
Version data entries
12 entries across 10 versions & 2 rubygems