Sha256: 2f9e63e0bc9695facdb55094c3a7461a53328777da82e84eb78aa5a19ab6a189
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
# 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'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dragongoserver-0.3.0 | README.txt |
dragongoserver-0.3.1 | README.txt |
dragongoserver-0.1.1 | README.txt |