# some example how you can use this gem within your programs require 'rubygems' require 'dragongoserver' require 'gorank' dgs = Dgs.new # get own user id at DGS id = dgs.userid puts "your user-id: #{id}" # your rank rank = dgs.get_rank puts "your rank:" p rank.to_s # your user infos infos = dgs.userinfo(id) puts "your attributes at DGS:" p infos # waiting games wg = dgs.waiting_games puts 'waiting games:' p wg # you can get info for every other user # user with user id 8000 user_8000 = dgs.userinfo(8000) puts "user 8000:" p user_8000 # see also the homepage of this gem for examples to use the # command line script 'dgs'