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

Version Path
rbovirt-0.1.7 lib/ovirt/template_version.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/rbovirt-0.1.6/lib/ovirt/template_version.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rbovirt-0.1.6/lib/ovirt/template_version.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/rbovirt-0.1.6/lib/ovirt/template_version.rb
rbovirt-0.1.6 lib/ovirt/template_version.rb
rbovirt-0.1.5 lib/ovirt/template_version.rb
rbovirt-0.1.4 lib/ovirt/template_version.rb
rbovirt-0.1.3 lib/ovirt/template_version.rb
rbovirt-0.1.2 lib/ovirt/template_version.rb
rbovirt-0.0.38 lib/ovirt/template_version.rb
rbovirt-0.1.1 lib/ovirt/template_version.rb
rbovirt-0.0.37 lib/ovirt/template_version.rb