# File lib/ovirt/base_object.rb, line 6 def initialize(client, id, href, name) @id, @href, @name = id, href, name @client = client self end
# File lib/ovirt/base_object.rb, line 16 def parse_bool text return true if text =~ /^true$/ return false if text =~ /^false$/ raise ArgumentError.new %Q[The string "#{text}" isn't a valid boolean, it should be "true" or "false"] end
# File lib/ovirt/base_object.rb, line 12 def parse_version xml (xml/'version').first[:major] +"."+ (xml/'version').first[:minor] end