So it should look something like:

get_server_version = get_server_version.split("-").first
@server_version ||= Gem::Version.new(get_server_version)