class OVIRT::BaseObject

Attributes

client[R]
href[RW]
id[RW]
name[RW]

Public Class Methods

new(client, id, href, name) click to toggle source
# File lib/ovirt/base_object.rb, line 6
def initialize(client, id, href, name)
  @id, @href, @name = id, href, name
  @client = client
  self
end

Public Instance Methods

parse_version(xml) click to toggle source
# File lib/ovirt/base_object.rb, line 12
def parse_version xml
  (xml/'version').first[:major] +"."+ (xml/'version').first[:minor]
end