# File lib/ovirt/base_object.rb, line 16defparse_booltextreturntrueiftext=~/^true$/returnfalseiftext=~/^false$/raiseArgumentError.new%[The string "#{text}" isn't a valid boolean, it should be "true" or "false"]end
parse_version(xml)click to toggle source
# File lib/ovirt/base_object.rb, line 12defparse_versionxml
(xml/'version').first[:major] +"."+ (xml/'version').first[:minor]
end