# File lib/deltacloud/drivers/rhevm/rhevm_client.rb, line 95 def api_version?(major) headers = { :content_type => 'application/xml', :accept => 'application/xml' } headers.merge!(auth_header) result_xml = Nokogiri::XML(RHEVM::client(@api_entrypoint)["/"].get(headers)) (result_xml/'/api/system_version').first[:major].strip == major end