steam-condenser 1.3.6 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (500) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +6 -1
  3. data/Gemfile.lock +1 -1
  4. data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +426 -0
  5. data/doc/A2S_INFO_Packet.html +260 -0
  6. data/doc/A2S_PLAYER_Packet.html +295 -0
  7. data/doc/A2S_RULES_Packet.html +296 -0
  8. data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
  9. data/doc/AbstractL4DStats.html +1023 -0
  10. data/doc/AbstractL4DWeapon.html +749 -0
  11. data/doc/AlienSwarmMission.html +1555 -0
  12. data/doc/AlienSwarmStats.html +1012 -0
  13. data/doc/AlienSwarmWeapon.html +640 -0
  14. data/doc/AppNews.html +1441 -0
  15. data/doc/C2M_CHECKMD5_Packet.html +342 -0
  16. data/doc/CSSMap.html +805 -0
  17. data/doc/CSSStats.html +866 -0
  18. data/doc/CSSWeapon.html +888 -0
  19. data/doc/Cacheable/ClassMethods.html +697 -0
  20. data/doc/Cacheable.html +911 -0
  21. data/doc/DefenseGridStats.html +2592 -0
  22. data/doc/DoDSClass.html +1263 -0
  23. data/doc/DoDSStats.html +519 -0
  24. data/doc/DoDSWeapon.html +803 -0
  25. data/doc/Dota2BetaInventory.html +354 -0
  26. data/doc/Dota2Inventory.html +354 -0
  27. data/doc/Dota2Item.html +388 -0
  28. data/doc/GameAchievement.html +1255 -0
  29. data/doc/GameClass.html +321 -0
  30. data/doc/GameInventory.html +1469 -0
  31. data/doc/GameItem.html +1900 -0
  32. data/doc/GameItemSchema.html +1444 -0
  33. data/doc/GameLeaderboard.html +1706 -0
  34. data/doc/GameLeaderboardEntry.html +629 -0
  35. data/doc/GameServer.html +2419 -0
  36. data/doc/GameStats.html +1459 -0
  37. data/doc/GameWeapon.html +607 -0
  38. data/doc/GoldSrcServer.html +738 -0
  39. data/doc/GoldSrcSocket.html +849 -0
  40. data/doc/L4D2Map.html +737 -0
  41. data/doc/L4D2Stats.html +986 -0
  42. data/doc/L4D2Weapon.html +486 -0
  43. data/doc/L4DExplosive.html +374 -0
  44. data/doc/L4DMap.html +775 -0
  45. data/doc/L4DStats.html +563 -0
  46. data/doc/L4DWeapon.html +296 -0
  47. data/doc/M2A_SERVER_BATCH_Packet.html +430 -0
  48. data/doc/M2C_ISVALIDMD5_Packet.html +383 -0
  49. data/doc/M2S_REQUESTRESTART_Packet.html +382 -0
  50. data/doc/MasterServer.html +1069 -0
  51. data/doc/MasterServerSocket.html +295 -0
  52. data/doc/PacketFormatError.html +173 -0
  53. data/doc/Portal2Inventory.html +354 -0
  54. data/doc/Portal2Item.html +602 -0
  55. data/doc/Portal2Stats.html +400 -0
  56. data/doc/RCONAuthRequest.html +317 -0
  57. data/doc/RCONAuthResponse.html +305 -0
  58. data/doc/RCONBanError.html +252 -0
  59. data/doc/RCONExecRequest.html +317 -0
  60. data/doc/RCONExecResponse.html +406 -0
  61. data/doc/RCONGoldSrcRequest.html +363 -0
  62. data/doc/RCONGoldSrcResponse.html +367 -0
  63. data/doc/RCONNoAuthError.html +252 -0
  64. data/doc/RCONPacket.html +564 -0
  65. data/doc/RCONPacketFactory.html +300 -0
  66. data/doc/RCONSocket.html +696 -0
  67. data/doc/RCONTerminator.html +304 -0
  68. data/doc/RequestWithChallenge.html +233 -0
  69. data/doc/S2A_INFO2_Packet.html +416 -0
  70. data/doc/S2A_INFO_BasePacket.html +266 -0
  71. data/doc/S2A_INFO_DETAILED_Packet.html +371 -0
  72. data/doc/S2A_LOGSTRING_Packet.html +373 -0
  73. data/doc/S2A_PLAYER_Packet.html +417 -0
  74. data/doc/S2A_RULES_Packet.html +411 -0
  75. data/doc/S2C_CHALLENGE_Packet.html +370 -0
  76. data/doc/S2M_HEARTBEAT2_Packet.html +445 -0
  77. data/doc/Server.html +874 -0
  78. data/doc/SourceServer.html +893 -0
  79. data/doc/SourceSocket.html +350 -0
  80. data/doc/SteamCondenser/Community/AbstractL4DStats.html +1026 -0
  81. data/doc/SteamCondenser/Community/AbstractL4DWeapon.html +749 -0
  82. data/doc/SteamCondenser/Community/AlienSwarmMission.html +1557 -0
  83. data/doc/SteamCondenser/Community/AlienSwarmStats.html +1013 -0
  84. data/doc/SteamCondenser/Community/AlienSwarmWeapon.html +641 -0
  85. data/doc/SteamCondenser/Community/AppNews.html +1441 -0
  86. data/doc/SteamCondenser/Community/CSSMap.html +805 -0
  87. data/doc/SteamCondenser/Community/CSSStats.html +866 -0
  88. data/doc/SteamCondenser/Community/CSSWeapon.html +889 -0
  89. data/doc/SteamCondenser/Community/Cacheable/ClassMethods.html +695 -0
  90. data/doc/SteamCondenser/Community/Cacheable.html +911 -0
  91. data/doc/SteamCondenser/Community/DefenseGridStats.html +2593 -0
  92. data/doc/SteamCondenser/Community/DoDSClass.html +1263 -0
  93. data/doc/SteamCondenser/Community/DoDSStats.html +520 -0
  94. data/doc/SteamCondenser/Community/DoDSWeapon.html +803 -0
  95. data/doc/SteamCondenser/Community/Dota2BetaInventory.html +354 -0
  96. data/doc/SteamCondenser/Community/Dota2Inventory.html +354 -0
  97. data/doc/SteamCondenser/Community/Dota2Item.html +388 -0
  98. data/doc/SteamCondenser/Community/Dota2Match.html +505 -0
  99. data/doc/SteamCondenser/Community/GameAchievement.html +1100 -0
  100. data/doc/SteamCondenser/Community/GameClass.html +321 -0
  101. data/doc/SteamCondenser/Community/GameInventory.html +1469 -0
  102. data/doc/SteamCondenser/Community/GameItem.html +1900 -0
  103. data/doc/SteamCondenser/Community/GameItemSchema.html +1444 -0
  104. data/doc/SteamCondenser/Community/GameLeaderboard.html +1707 -0
  105. data/doc/SteamCondenser/Community/GameLeaderboardEntry.html +630 -0
  106. data/doc/SteamCondenser/Community/GameStats.html +1461 -0
  107. data/doc/SteamCondenser/Community/GameStatsSchema.html +771 -0
  108. data/doc/SteamCondenser/Community/GameStatsValue/Instance.html +262 -0
  109. data/doc/SteamCondenser/Community/GameStatsValue.html +596 -0
  110. data/doc/SteamCondenser/Community/GameWeapon.html +608 -0
  111. data/doc/SteamCondenser/Community/L4D2Map.html +737 -0
  112. data/doc/SteamCondenser/Community/L4D2Stats.html +989 -0
  113. data/doc/SteamCondenser/Community/L4D2Weapon.html +486 -0
  114. data/doc/SteamCondenser/Community/L4DExplosive.html +375 -0
  115. data/doc/SteamCondenser/Community/L4DMap.html +775 -0
  116. data/doc/SteamCondenser/Community/L4DStats.html +564 -0
  117. data/doc/SteamCondenser/Community/L4DWeapon.html +296 -0
  118. data/doc/SteamCondenser/Community/Portal2Inventory.html +354 -0
  119. data/doc/SteamCondenser/Community/Portal2Item.html +603 -0
  120. data/doc/SteamCondenser/Community/Portal2Stats.html +400 -0
  121. data/doc/SteamCondenser/Community/SteamGame.html +1862 -0
  122. data/doc/SteamCondenser/Community/SteamGroup.html +1018 -0
  123. data/doc/SteamCondenser/Community/SteamId.html +4430 -0
  124. data/doc/SteamCondenser/Community/TF2BetaInventory.html +345 -0
  125. data/doc/SteamCondenser/Community/TF2Class.html +1186 -0
  126. data/doc/SteamCondenser/Community/TF2ClassFactory.html +273 -0
  127. data/doc/SteamCondenser/Community/TF2Engineer.html +555 -0
  128. data/doc/SteamCondenser/Community/TF2GoldenWrench.html +760 -0
  129. data/doc/SteamCondenser/Community/TF2Inventory.html +354 -0
  130. data/doc/SteamCondenser/Community/TF2Item.html +602 -0
  131. data/doc/SteamCondenser/Community/TF2Medic.html +463 -0
  132. data/doc/SteamCondenser/Community/TF2Sniper.html +372 -0
  133. data/doc/SteamCondenser/Community/TF2Spy.html +553 -0
  134. data/doc/SteamCondenser/Community/TF2Stats.html +728 -0
  135. data/doc/SteamCondenser/Community/UserStats.html +760 -0
  136. data/doc/SteamCondenser/Community/WebApi.html +1116 -0
  137. data/doc/SteamCondenser/Community/XMLData.html +274 -0
  138. data/doc/SteamCondenser/Community.html +134 -0
  139. data/doc/SteamCondenser/Error/PacketFormat.html +173 -0
  140. data/doc/SteamCondenser/Error/RCONBan.html +253 -0
  141. data/doc/SteamCondenser/Error/RCONNoAuth.html +252 -0
  142. data/doc/SteamCondenser/Error/Timeout.html +254 -0
  143. data/doc/SteamCondenser/Error/WebApi.html +354 -0
  144. data/doc/SteamCondenser/Error.html +380 -0
  145. data/doc/SteamCondenser/Logging.html +616 -0
  146. data/doc/SteamCondenser/Servers/BaseServer.html +870 -0
  147. data/doc/SteamCondenser/Servers/GameServer.html +2428 -0
  148. data/doc/SteamCondenser/Servers/GoldSrcServer.html +738 -0
  149. data/doc/SteamCondenser/Servers/MasterServer.html +819 -0
  150. data/doc/SteamCondenser/Servers/Packets/A2M_GET_SERVERS_BATCH2_Packet.html +427 -0
  151. data/doc/SteamCondenser/Servers/Packets/A2S_INFO_Packet.html +260 -0
  152. data/doc/SteamCondenser/Servers/Packets/A2S_PLAYER_Packet.html +295 -0
  153. data/doc/SteamCondenser/Servers/Packets/A2S_RULES_Packet.html +296 -0
  154. data/doc/SteamCondenser/Servers/Packets/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
  155. data/doc/SteamCondenser/Servers/Packets/BasePacket.html +462 -0
  156. data/doc/SteamCondenser/Servers/Packets/M2A_SERVER_BATCH_Packet.html +430 -0
  157. data/doc/SteamCondenser/Servers/Packets/RCON/BasePacket.html +564 -0
  158. data/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthRequest.html +317 -0
  159. data/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthResponse.html +305 -0
  160. data/doc/SteamCondenser/Servers/Packets/RCON/RCONExecRequest.html +317 -0
  161. data/doc/SteamCondenser/Servers/Packets/RCON/RCONExecResponse.html +406 -0
  162. data/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcRequest.html +363 -0
  163. data/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcResponse.html +368 -0
  164. data/doc/SteamCondenser/Servers/Packets/RCON/RCONPacketFactory.html +302 -0
  165. data/doc/SteamCondenser/Servers/Packets/RCON/RCONTerminator.html +304 -0
  166. data/doc/SteamCondenser/Servers/Packets/RCON.html +119 -0
  167. data/doc/SteamCondenser/Servers/Packets/RequestWithChallenge.html +233 -0
  168. data/doc/SteamCondenser/Servers/Packets/S2A_INFO2_Packet.html +416 -0
  169. data/doc/SteamCondenser/Servers/Packets/S2A_INFO_BasePacket.html +266 -0
  170. data/doc/SteamCondenser/Servers/Packets/S2A_INFO_DETAILED_Packet.html +371 -0
  171. data/doc/SteamCondenser/Servers/Packets/S2A_LOGSTRING_Packet.html +373 -0
  172. data/doc/SteamCondenser/Servers/Packets/S2A_PLAYER_Packet.html +417 -0
  173. data/doc/SteamCondenser/Servers/Packets/S2A_RULES_Packet.html +411 -0
  174. data/doc/SteamCondenser/Servers/Packets/S2C_CHALLENGE_Packet.html +370 -0
  175. data/doc/SteamCondenser/Servers/Packets/SteamPacketFactory.html +532 -0
  176. data/doc/SteamCondenser/Servers/Packets.html +132 -0
  177. data/doc/SteamCondenser/Servers/Sockets/BaseSocket.html +733 -0
  178. data/doc/SteamCondenser/Servers/Sockets/GoldSrcSocket.html +862 -0
  179. data/doc/SteamCondenser/Servers/Sockets/MasterServerSocket.html +306 -0
  180. data/doc/SteamCondenser/Servers/Sockets/RCONSocket.html +709 -0
  181. data/doc/SteamCondenser/Servers/Sockets/SourceSocket.html +367 -0
  182. data/doc/SteamCondenser/Servers/Sockets.html +119 -0
  183. data/doc/SteamCondenser/Servers/SourceServer.html +892 -0
  184. data/doc/SteamCondenser/Servers/SteamPlayer.html +1764 -0
  185. data/doc/SteamCondenser/Servers.html +133 -0
  186. data/doc/SteamCondenser/TimeoutError.html +254 -0
  187. data/doc/SteamCondenser.html +155 -0
  188. data/doc/SteamCondenserError.html +370 -0
  189. data/doc/SteamGame.html +1950 -0
  190. data/doc/SteamGroup.html +1023 -0
  191. data/doc/SteamId.html +4299 -0
  192. data/doc/SteamPacket.html +486 -0
  193. data/doc/SteamPacketFactory.html +556 -0
  194. data/doc/SteamPlayer.html +1764 -0
  195. data/doc/SteamSocket.html +725 -0
  196. data/doc/StringIO.html +939 -0
  197. data/doc/TF2BetaInventory.html +330 -0
  198. data/doc/TF2Class.html +1185 -0
  199. data/doc/TF2ClassFactory.html +273 -0
  200. data/doc/TF2Engineer.html +555 -0
  201. data/doc/TF2GoldenWrench.html +760 -0
  202. data/doc/TF2Inventory.html +354 -0
  203. data/doc/TF2Item.html +602 -0
  204. data/doc/TF2Medic.html +463 -0
  205. data/doc/TF2Sniper.html +372 -0
  206. data/doc/TF2Spy.html +553 -0
  207. data/doc/TF2Stats.html +728 -0
  208. data/doc/WebApi.html +1108 -0
  209. data/doc/WebApiError.html +351 -0
  210. data/doc/XMLData.html +274 -0
  211. data/doc/_index.html +728 -0
  212. data/doc/class_list.html +54 -0
  213. data/doc/css/common.css +1 -0
  214. data/doc/css/full_list.css +57 -0
  215. data/doc/css/style.css +338 -0
  216. data/doc/file.CHANGELOG.html +368 -0
  217. data/doc/file.CONTRIBUTING.html +140 -0
  218. data/doc/file.LICENSE.html +100 -0
  219. data/doc/file.README.html +152 -0
  220. data/doc/file_list.html +65 -0
  221. data/doc/frames.html +28 -0
  222. data/doc/index.html +152 -0
  223. data/doc/js/app.js +214 -0
  224. data/doc/js/full_list.js +178 -0
  225. data/doc/js/jquery.js +4 -0
  226. data/doc/method_list.html +3155 -0
  227. data/doc/top-level-namespace.html +114 -0
  228. data/lib/steam/community/web_api.rb +6 -2
  229. data/lib/steam/servers/source_server.rb +8 -2
  230. data/lib/steam-condenser/version.rb +1 -1
  231. data/pkg/steam-condenser-1.3.5/Gemfile.lock +1 -1
  232. data/pkg/steam-condenser-1.3.6/CHANGELOG.md +228 -0
  233. data/pkg/steam-condenser-1.3.6/CONTRIBUTING.md +59 -0
  234. data/pkg/steam-condenser-1.3.6/Gemfile +7 -0
  235. data/pkg/steam-condenser-1.3.6/Gemfile.lock +45 -0
  236. data/pkg/steam-condenser-1.3.6/LICENSE +25 -0
  237. data/pkg/steam-condenser-1.3.6/README.md +75 -0
  238. data/pkg/steam-condenser-1.3.6/Rakefile +46 -0
  239. data/pkg/steam-condenser-1.3.6/lib/core_ext/stringio.rb +91 -0
  240. data/pkg/steam-condenser-1.3.6/lib/errors/packet_format_error.rb +13 -0
  241. data/pkg/steam-condenser-1.3.6/lib/errors/rcon_ban_error.rb +22 -0
  242. data/pkg/steam-condenser-1.3.6/lib/errors/rcon_no_auth_error.rb +21 -0
  243. data/pkg/steam-condenser-1.3.6/lib/errors/steam_condenser_error.rb +26 -0
  244. data/pkg/steam-condenser-1.3.6/lib/errors/timeout_error.rb +28 -0
  245. data/pkg/steam-condenser-1.3.6/lib/errors/web_api_error.rb +57 -0
  246. data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_mission.rb +120 -0
  247. data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_stats.rb +188 -0
  248. data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
  249. data/pkg/steam-condenser-1.3.6/lib/steam/community/app_news.rb +133 -0
  250. data/pkg/steam-condenser-1.3.6/lib/steam/community/cacheable.rb +199 -0
  251. data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_map.rb +61 -0
  252. data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_stats.rb +140 -0
  253. data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_weapon.rb +69 -0
  254. data/pkg/steam-condenser-1.3.6/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
  255. data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_class.rb +90 -0
  256. data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_stats.rb +62 -0
  257. data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_weapon.rb +67 -0
  258. data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
  259. data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_inventory.rb +30 -0
  260. data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_item.rb +33 -0
  261. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_achievement.rb +109 -0
  262. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_class.rb +22 -0
  263. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_inventory.rb +171 -0
  264. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_item.rb +155 -0
  265. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_item_schema.rb +131 -0
  266. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_leaderboard.rb +212 -0
  267. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_leaderboard_entry.rb +43 -0
  268. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_stats.rb +175 -0
  269. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_weapon.rb +41 -0
  270. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/abstract_l4d_stats.rb +188 -0
  271. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
  272. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_map.rb +90 -0
  273. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_stats.rb +179 -0
  274. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
  275. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_explosive.rb +34 -0
  276. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_map.rb +65 -0
  277. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_stats.rb +73 -0
  278. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_weapon.rb +26 -0
  279. data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_inventory.rb +30 -0
  280. data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_item.rb +55 -0
  281. data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_stats.rb +33 -0
  282. data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_game.rb +193 -0
  283. data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_group.rb +129 -0
  284. data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_id.rb +495 -0
  285. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
  286. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_class.rb +92 -0
  287. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
  288. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_engineer.rb +43 -0
  289. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
  290. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_inventory.rb +30 -0
  291. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_item.rb +55 -0
  292. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_medic.rb +35 -0
  293. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_sniper.rb +28 -0
  294. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_spy.rb +41 -0
  295. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_stats.rb +77 -0
  296. data/pkg/steam-condenser-1.3.6/lib/steam/community/web_api.rb +135 -0
  297. data/pkg/steam-condenser-1.3.6/lib/steam/community/xml_data.rb +27 -0
  298. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
  299. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_info_packet.rb +24 -0
  300. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_player_packet.rb +31 -0
  301. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_rules_packet.rb +32 -0
  302. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
  303. data/pkg/steam-condenser-1.3.6/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
  304. data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
  305. data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
  306. data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
  307. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
  308. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
  309. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
  310. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
  311. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
  312. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
  313. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_packet.rb +57 -0
  314. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
  315. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
  316. data/pkg/steam-condenser-1.3.6/lib/steam/packets/request_with_challenge.rb +19 -0
  317. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info2_packet.rb +76 -0
  318. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info_base_packet.rb +25 -0
  319. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info_detailed_packet.rb +64 -0
  320. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_logstring_packet.rb +30 -0
  321. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_player_packet.rb +44 -0
  322. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_rules_packet.rb +48 -0
  323. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2c_challenge_packet.rb +35 -0
  324. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
  325. data/pkg/steam-condenser-1.3.6/lib/steam/packets/steam_packet.rb +52 -0
  326. data/pkg/steam-condenser-1.3.6/lib/steam/packets/steam_packet_factory.rb +113 -0
  327. data/pkg/steam-condenser-1.3.6/lib/steam/servers/game_server.rb +393 -0
  328. data/pkg/steam-condenser-1.3.6/lib/steam/servers/goldsrc_server.rb +74 -0
  329. data/pkg/steam-condenser-1.3.6/lib/steam/servers/master_server.rb +188 -0
  330. data/pkg/steam-condenser-1.3.6/lib/steam/servers/server.rb +115 -0
  331. data/pkg/steam-condenser-1.3.6/lib/steam/servers/source_server.rb +117 -0
  332. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/goldsrc_socket.rb +142 -0
  333. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/master_server_socket.rb +34 -0
  334. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/rcon_socket.rb +103 -0
  335. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/source_socket.rb +73 -0
  336. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/steam_socket.rb +91 -0
  337. data/pkg/steam-condenser-1.3.6/lib/steam/steam_player.rb +143 -0
  338. data/pkg/steam-condenser-1.3.6/lib/steam-condenser/community.rb +24 -0
  339. data/pkg/steam-condenser-1.3.6/lib/steam-condenser/servers.rb +24 -0
  340. data/pkg/steam-condenser-1.3.6/lib/steam-condenser/version.rb +11 -0
  341. data/pkg/steam-condenser-1.3.6/lib/steam-condenser.rb +18 -0
  342. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Gemfile +7 -0
  343. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Gemfile.lock +45 -0
  344. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/LICENSE +25 -0
  345. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/README.md +70 -0
  346. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Rakefile +46 -0
  347. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/core_ext/stringio.rb +91 -0
  348. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/packet_format_error.rb +13 -0
  349. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/rcon_ban_error.rb +22 -0
  350. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/rcon_no_auth_error.rb +21 -0
  351. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/steam_condenser_error.rb +26 -0
  352. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/timeout_error.rb +28 -0
  353. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/web_api_error.rb +57 -0
  354. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
  355. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_stats.rb +186 -0
  356. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
  357. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/app_news.rb +133 -0
  358. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/cacheable.rb +199 -0
  359. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_map.rb +61 -0
  360. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_stats.rb +142 -0
  361. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_weapon.rb +69 -0
  362. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
  363. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_class.rb +90 -0
  364. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_stats.rb +62 -0
  365. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_weapon.rb +67 -0
  366. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
  367. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_inventory.rb +30 -0
  368. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_item.rb +33 -0
  369. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_achievement.rb +109 -0
  370. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_class.rb +22 -0
  371. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_inventory.rb +171 -0
  372. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_item.rb +156 -0
  373. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_item_schema.rb +131 -0
  374. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard.rb +205 -0
  375. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard_entry.rb +43 -0
  376. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_stats.rb +175 -0
  377. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_weapon.rb +41 -0
  378. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_stats.rb +185 -0
  379. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
  380. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_map.rb +90 -0
  381. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_stats.rb +174 -0
  382. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
  383. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_explosive.rb +34 -0
  384. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_map.rb +65 -0
  385. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_stats.rb +73 -0
  386. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_weapon.rb +26 -0
  387. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_inventory.rb +30 -0
  388. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_item.rb +55 -0
  389. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_stats.rb +33 -0
  390. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_game.rb +193 -0
  391. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_group.rb +129 -0
  392. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_id.rb +498 -0
  393. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
  394. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class.rb +92 -0
  395. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
  396. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_engineer.rb +43 -0
  397. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
  398. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_inventory.rb +30 -0
  399. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_item.rb +55 -0
  400. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_medic.rb +35 -0
  401. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_sniper.rb +28 -0
  402. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_spy.rb +41 -0
  403. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_stats.rb +77 -0
  404. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/web_api.rb +130 -0
  405. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/xml_data.rb +27 -0
  406. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
  407. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_info_packet.rb +24 -0
  408. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_player_packet.rb +31 -0
  409. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_rules_packet.rb +32 -0
  410. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
  411. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
  412. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
  413. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
  414. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
  415. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
  416. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
  417. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
  418. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
  419. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
  420. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
  421. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet.rb +57 -0
  422. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
  423. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
  424. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/request_with_challenge.rb +19 -0
  425. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info2_packet.rb +74 -0
  426. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_base_packet.rb +25 -0
  427. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_detailed_packet.rb +59 -0
  428. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_logstring_packet.rb +30 -0
  429. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_player_packet.rb +44 -0
  430. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_rules_packet.rb +48 -0
  431. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2c_challenge_packet.rb +35 -0
  432. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
  433. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet.rb +52 -0
  434. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet_factory.rb +108 -0
  435. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/game_server.rb +392 -0
  436. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/goldsrc_server.rb +74 -0
  437. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/master_server.rb +188 -0
  438. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/server.rb +115 -0
  439. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/source_server.rb +117 -0
  440. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/goldsrc_socket.rb +142 -0
  441. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/master_server_socket.rb +34 -0
  442. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/rcon_socket.rb +103 -0
  443. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/source_socket.rb +78 -0
  444. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/steam_socket.rb +91 -0
  445. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/steam_player.rb +143 -0
  446. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/community.rb +24 -0
  447. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/servers.rb +24 -0
  448. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/version.rb +11 -0
  449. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser.rb +18 -0
  450. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/steam-condenser.gemspec +26 -0
  451. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/core_ext/test_stringio.rb +59 -0
  452. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/invalid.xml +2 -0
  453. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/sonofthor.xml +882 -0
  454. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/status_goldsrc +3 -0
  455. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/status_source +3 -0
  456. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/valve-members.xml +231 -0
  457. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/helper.rb +48 -0
  458. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_cacheable.rb +100 -0
  459. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_group.rb +83 -0
  460. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_id.rb +144 -0
  461. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_web_api.rb +98 -0
  462. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/packets/test_steam_packet.rb +37 -0
  463. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_game_server.rb +296 -0
  464. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_goldsrc_server.rb +59 -0
  465. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_master_server.rb +131 -0
  466. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_server.rb +72 -0
  467. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_source_server.rb +134 -0
  468. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_goldsrc_socket.rb +127 -0
  469. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_master_server_socket.rb +42 -0
  470. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_rcon_socket.rb +118 -0
  471. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_source_socket.rb +77 -0
  472. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_steam_socket.rb +97 -0
  473. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5.gem +0 -0
  474. data/pkg/steam-condenser-1.3.6/steam-condenser.gemspec +25 -0
  475. data/pkg/steam-condenser-1.3.6/test/core_ext/test_stringio.rb +59 -0
  476. data/pkg/steam-condenser-1.3.6/test/fixtures/invalid.xml +2 -0
  477. data/pkg/steam-condenser-1.3.6/test/fixtures/sonofthor.xml +882 -0
  478. data/pkg/steam-condenser-1.3.6/test/fixtures/status_goldsrc +3 -0
  479. data/pkg/steam-condenser-1.3.6/test/fixtures/status_source +3 -0
  480. data/pkg/steam-condenser-1.3.6/test/fixtures/valve-members.xml +231 -0
  481. data/pkg/steam-condenser-1.3.6/test/helper.rb +48 -0
  482. data/pkg/steam-condenser-1.3.6/test/steam/community/test_cacheable.rb +103 -0
  483. data/pkg/steam-condenser-1.3.6/test/steam/community/test_steam_group.rb +83 -0
  484. data/pkg/steam-condenser-1.3.6/test/steam/community/test_steam_id.rb +144 -0
  485. data/pkg/steam-condenser-1.3.6/test/steam/community/test_web_api.rb +111 -0
  486. data/pkg/steam-condenser-1.3.6/test/steam/packets/test_steam_packet.rb +37 -0
  487. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_game_server.rb +296 -0
  488. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_goldsrc_server.rb +59 -0
  489. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_master_server.rb +131 -0
  490. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_server.rb +72 -0
  491. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_source_server.rb +134 -0
  492. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_goldsrc_socket.rb +127 -0
  493. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_master_server_socket.rb +42 -0
  494. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_rcon_socket.rb +118 -0
  495. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_source_socket.rb +77 -0
  496. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_steam_socket.rb +97 -0
  497. data/pkg/steam-condenser-1.3.6.gem +0 -0
  498. data/test/steam/community/test_web_api.rb +13 -0
  499. data/test/steam/servers/test_source_server.rb +18 -7
  500. metadata +493 -3
@@ -0,0 +1,2428 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: SteamCondenser::Servers::GameServer
8
+
9
+ &mdash; Metior — API Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (G)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../SteamCondenser.html" title="SteamCondenser (module)">SteamCondenser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Servers.html" title="SteamCondenser::Servers (module)">Servers</a></span></span>
36
+ &raquo;
37
+ <span class="title">GameServer</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: SteamCondenser::Servers::GameServer
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+ <dt class="r1">Includes:</dt>
79
+ <dd class="r1"><span class='object_link'><a href="BaseServer.html" title="SteamCondenser::Servers::BaseServer (module)">BaseServer</a></span></dd>
80
+
81
+
82
+
83
+
84
+ <dt class="r2">Included in:</dt>
85
+ <dd class="r2"><span class='object_link'><a href="GoldSrcServer.html" title="SteamCondenser::Servers::GoldSrcServer (class)">GoldSrcServer</a></span>, <span class='object_link'><a href="SourceServer.html" title="SteamCondenser::Servers::SourceServer (class)">SourceServer</a></span></dd>
86
+
87
+
88
+
89
+ <dt class="r1 last">Defined in:</dt>
90
+ <dd class="r1 last">lib/steam-condenser/servers/game_server.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+ <p>This module is included by classes representing different game server
98
+ implementations and provides the basic functionality to communicate with
99
+ them using the common query protocol</p>
100
+
101
+
102
+ </div>
103
+ </div>
104
+ <div class="tags">
105
+
106
+ <p class="tag_title">Author:</p>
107
+ <ul class="author">
108
+
109
+ <li>
110
+
111
+
112
+
113
+
114
+
115
+ <div class='inline'><p>Sebastian Staudt</p>
116
+ </div>
117
+
118
+ </li>
119
+
120
+ </ul>
121
+
122
+ </div>
123
+
124
+
125
+
126
+
127
+
128
+ <h2>Instance Attribute Summary</h2>
129
+
130
+ <h3 class="inherited">Attributes included from <span class='object_link'><a href="BaseServer.html" title="SteamCondenser::Servers::BaseServer (module)">BaseServer</a></span></h3>
131
+ <p class="inherited"><span class='object_link'><a href="BaseServer.html#host_names-instance_method" title="SteamCondenser::Servers::BaseServer#host_names (method)">#host_names</a></span>, <span class='object_link'><a href="BaseServer.html#ip_addresses-instance_method" title="SteamCondenser::Servers::BaseServer#ip_addresses (method)">#ip_addresses</a></span></p>
132
+
133
+
134
+
135
+ <h2>
136
+ Class Method Summary
137
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
138
+ </h2>
139
+
140
+ <ul class="summary">
141
+
142
+ <li class="public ">
143
+ <span class="summary_signature">
144
+
145
+ <a href="#player_status_attributes-class_method" title="player_status_attributes (class method)">+ (Array&lt;Symbol&gt;) <strong>player_status_attributes</strong>(status_header) </a>
146
+
147
+
148
+
149
+ </span>
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <span class="summary_desc"><div class='inline'><p>Parses the player attribute names supplied by <code>rcon status</code>.</p>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#split_player_status-class_method" title="split_player_status (class method)">+ (Hash&lt;Symbol, String&gt;) <strong>split_player_status</strong>(attributes, player_status) </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <span class="summary_desc"><div class='inline'><p>Splits the player status obtained with <code>rcon status</code>.</p>
183
+ </div></span>
184
+
185
+ </li>
186
+
187
+
188
+ </ul>
189
+
190
+ <h2>
191
+ Instance Method Summary
192
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
193
+ </h2>
194
+
195
+ <ul class="summary">
196
+
197
+ <li class="public ">
198
+ <span class="summary_signature">
199
+
200
+ <a href="#handle_response_for_request-instance_method" title="#handle_response_for_request (instance method)">- (Object) <strong>handle_response_for_request</strong>(request_type, repeat_on_failure = true) </a>
201
+
202
+
203
+
204
+ </span>
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+ <span class="summary_desc"><div class='inline'><p>Sends the specified request to the server and handles the returned response.</p>
215
+ </div></span>
216
+
217
+ </li>
218
+
219
+
220
+ <li class="public ">
221
+ <span class="summary_signature">
222
+
223
+ <a href="#init-instance_method" title="#init (instance method)">- (Object) <strong>init</strong> </a>
224
+
225
+
226
+
227
+ </span>
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <span class="summary_desc"><div class='inline'><p>Initializes this server object with basic information.</p>
238
+ </div></span>
239
+
240
+ </li>
241
+
242
+
243
+ <li class="public ">
244
+ <span class="summary_signature">
245
+
246
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (GameServer) <strong>initialize</strong>(address, port = 27015) </a>
247
+
248
+
249
+
250
+ </span>
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+ <span class="summary_desc"><div class='inline'><p>Creates a new instance of a game server object.</p>
261
+ </div></span>
262
+
263
+ </li>
264
+
265
+
266
+ <li class="public ">
267
+ <span class="summary_signature">
268
+
269
+ <a href="#ping-instance_method" title="#ping (instance method)">- (Fixnum) <strong>ping</strong> </a>
270
+
271
+
272
+
273
+ </span>
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+ <span class="summary_desc"><div class='inline'><p>Returns the last measured response time of this server.</p>
284
+ </div></span>
285
+
286
+ </li>
287
+
288
+
289
+ <li class="public ">
290
+ <span class="summary_signature">
291
+
292
+ <a href="#players-instance_method" title="#players (instance method)">- (Hash) <strong>players</strong>(rcon_password = nil) </a>
293
+
294
+
295
+
296
+ </span>
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+ <span class="summary_desc"><div class='inline'><p>Returns a list of players currently playing on this server.</p>
307
+ </div></span>
308
+
309
+ </li>
310
+
311
+
312
+ <li class="public ">
313
+ <span class="summary_signature">
314
+
315
+ <a href="#rcon_auth-instance_method" title="#rcon_auth (instance method)">- (Boolean) <strong>rcon_auth</strong>(password) </a>
316
+
317
+
318
+
319
+ </span>
320
+
321
+
322
+
323
+
324
+ <span class="abstract note title">abstract</span>
325
+
326
+
327
+
328
+
329
+ <span class="summary_desc"><div class='inline'><p>Authenticates the connection for RCON communication with the server.</p>
330
+ </div></span>
331
+
332
+ </li>
333
+
334
+
335
+ <li class="public ">
336
+ <span class="summary_signature">
337
+
338
+ <a href="#rcon_authenticated%3F-instance_method" title="#rcon_authenticated? (instance method)">- (Boolean) <strong>rcon_authenticated?</strong> </a>
339
+
340
+
341
+
342
+ </span>
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+ <span class="summary_desc"><div class='inline'><p>Returns whether the RCON connection to this server is already authenticated.</p>
353
+ </div></span>
354
+
355
+ </li>
356
+
357
+
358
+ <li class="public ">
359
+ <span class="summary_signature">
360
+
361
+ <a href="#rcon_exec-instance_method" title="#rcon_exec (instance method)">- (String) <strong>rcon_exec</strong>(command) </a>
362
+
363
+
364
+
365
+ </span>
366
+
367
+
368
+
369
+
370
+ <span class="abstract note title">abstract</span>
371
+
372
+
373
+
374
+
375
+ <span class="summary_desc"><div class='inline'><p>Remotely executes a command on the server via RCON.</p>
376
+ </div></span>
377
+
378
+ </li>
379
+
380
+
381
+ <li class="protected ">
382
+ <span class="summary_signature">
383
+
384
+ <a href="#reply-instance_method" title="#reply (instance method)">- (Packets::BasePacket) <strong>reply</strong> </a>
385
+
386
+
387
+
388
+ </span>
389
+
390
+
391
+
392
+ <span class="note title protected">protected</span>
393
+
394
+
395
+
396
+
397
+
398
+ <span class="summary_desc"><div class='inline'><p>Receives a response from the server.</p>
399
+ </div></span>
400
+
401
+ </li>
402
+
403
+
404
+ <li class="public ">
405
+ <span class="summary_signature">
406
+
407
+ <a href="#rules-instance_method" title="#rules (instance method)">- (Hash&lt;String, String&gt;) <strong>rules</strong> </a>
408
+
409
+
410
+
411
+ </span>
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+ <span class="summary_desc"><div class='inline'><p>Returns the settings applied on the server.</p>
422
+ </div></span>
423
+
424
+ </li>
425
+
426
+
427
+ <li class="protected ">
428
+ <span class="summary_signature">
429
+
430
+ <a href="#send_request-instance_method" title="#send_request (instance method)">- (Object) <strong>send_request</strong>(packet) </a>
431
+
432
+
433
+
434
+ </span>
435
+
436
+
437
+
438
+ <span class="note title protected">protected</span>
439
+
440
+
441
+
442
+
443
+
444
+ <span class="summary_desc"><div class='inline'><p>Sends a request packet to the server.</p>
445
+ </div></span>
446
+
447
+ </li>
448
+
449
+
450
+ <li class="public ">
451
+ <span class="summary_signature">
452
+
453
+ <a href="#server_info-instance_method" title="#server_info (instance method)">- (Hash) <strong>server_info</strong> </a>
454
+
455
+
456
+
457
+ </span>
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+ <span class="summary_desc"><div class='inline'><p>Returns a hash with basic information on the server.</p>
468
+ </div></span>
469
+
470
+ </li>
471
+
472
+
473
+ <li class="public ">
474
+ <span class="summary_signature">
475
+
476
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong> </a>
477
+
478
+
479
+
480
+ </span>
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+ <span class="summary_desc"><div class='inline'><p>Returns a human-readable text representation of the server.</p>
491
+ </div></span>
492
+
493
+ </li>
494
+
495
+
496
+ <li class="public ">
497
+ <span class="summary_signature">
498
+
499
+ <a href="#update_challenge_number-instance_method" title="#update_challenge_number (instance method)">- (Object) <strong>update_challenge_number</strong> </a>
500
+
501
+
502
+
503
+ </span>
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+ <span class="summary_desc"><div class='inline'><p>Sends a A2S_SERVERQUERY_GETCHALLENGE request to the server and updates the challenge number used to communicate with this server.</p>
514
+ </div></span>
515
+
516
+ </li>
517
+
518
+
519
+ <li class="public ">
520
+ <span class="summary_signature">
521
+
522
+ <a href="#update_ping-instance_method" title="#update_ping (instance method)">- (Fixnum) <strong>update_ping</strong> </a>
523
+
524
+
525
+
526
+ </span>
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+ <span class="summary_desc"><div class='inline'><p>Sends a A2S_INFO request to the server and measures the time needed for the reply.</p>
537
+ </div></span>
538
+
539
+ </li>
540
+
541
+
542
+ <li class="public ">
543
+ <span class="summary_signature">
544
+
545
+ <a href="#update_players-instance_method" title="#update_players (instance method)">- (Object) <strong>update_players</strong>(rcon_password = nil) </a>
546
+
547
+
548
+
549
+ </span>
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+ <span class="summary_desc"><div class='inline'><p>Sends a A2S_PLAYERS request to the server and updates the players&#39; data for this server.</p>
560
+ </div></span>
561
+
562
+ </li>
563
+
564
+
565
+ <li class="public ">
566
+ <span class="summary_signature">
567
+
568
+ <a href="#update_rules-instance_method" title="#update_rules (instance method)">- (Object) <strong>update_rules</strong> </a>
569
+
570
+
571
+
572
+ </span>
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+ <span class="summary_desc"><div class='inline'><p>Sends a A2S_RULES request to the server and updates the rules of this server.</p>
583
+ </div></span>
584
+
585
+ </li>
586
+
587
+
588
+ <li class="public ">
589
+ <span class="summary_signature">
590
+
591
+ <a href="#update_server_info-instance_method" title="#update_server_info (instance method)">- (Object) <strong>update_server_info</strong> </a>
592
+
593
+
594
+
595
+ </span>
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+ <span class="summary_desc"><div class='inline'><p>Sends a A2S_INFO request to the server and updates this server&#39;s basic information.</p>
606
+ </div></span>
607
+
608
+ </li>
609
+
610
+
611
+ </ul>
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="BaseServer.html" title="SteamCondenser::Servers::BaseServer (module)">BaseServer</a></span></h3>
624
+ <p class="inherited"><span class='object_link'><a href="BaseServer.html#disconnect-instance_method" title="SteamCondenser::Servers::BaseServer#disconnect (method)">#disconnect</a></span>, <span class='object_link'><a href="BaseServer.html#failsafe-instance_method" title="SteamCondenser::Servers::BaseServer#failsafe (method)">#failsafe</a></span>, <span class='object_link'><a href="BaseServer.html#init_socket-instance_method" title="SteamCondenser::Servers::BaseServer#init_socket (method)">#init_socket</a></span>, <span class='object_link'><a href="BaseServer.html#rotate_ip-instance_method" title="SteamCondenser::Servers::BaseServer#rotate_ip (method)">#rotate_ip</a></span></p>
625
+
626
+
627
+ <div id="class_method_details" class="method_details_list">
628
+ <h2>Class Method Details</h2>
629
+
630
+
631
+ <div class="method_details first">
632
+ <h3 class="signature first" id="player_status_attributes-class_method">
633
+
634
+ + (<tt>Array&lt;Symbol&gt;</tt>) <strong>player_status_attributes</strong>(status_header)
635
+
636
+
637
+
638
+
639
+
640
+ </h3><div class="docstring">
641
+ <div class="discussion">
642
+ <p>Parses the player attribute names supplied by <code>rcon status</code></p>
643
+
644
+
645
+ </div>
646
+ </div>
647
+ <div class="tags">
648
+ <p class="tag_title">Parameters:</p>
649
+ <ul class="param">
650
+
651
+ <li>
652
+
653
+ <span class='name'>status_header</span>
654
+
655
+
656
+ <span class='type'>(<tt>String</tt>)</span>
657
+
658
+
659
+
660
+ &mdash;
661
+ <div class='inline'><p>The header line provided by <code>rcon status</code></p>
662
+ </div>
663
+
664
+ </li>
665
+
666
+ </ul>
667
+
668
+ <p class="tag_title">Returns:</p>
669
+ <ul class="return">
670
+
671
+ <li>
672
+
673
+
674
+ <span class='type'>(<tt>Array&lt;Symbol&gt;</tt>)</span>
675
+
676
+
677
+
678
+ &mdash;
679
+ <div class='inline'><p>Split player attribute names</p>
680
+ </div>
681
+
682
+ </li>
683
+
684
+ </ul>
685
+
686
+ <p class="tag_title">See Also:</p>
687
+ <ul class="see">
688
+
689
+ <li><span class='object_link'><a href="#split_player_status-class_method" title="SteamCondenser::Servers::GameServer.split_player_status (method)">split_player_status</a></span></li>
690
+
691
+ </ul>
692
+
693
+ </div><table class="source_code">
694
+ <tr>
695
+ <td>
696
+ <pre class="lines">
697
+
698
+
699
+ 37
700
+ 38
701
+ 39
702
+ 40
703
+ 41
704
+ 42
705
+ 43
706
+ 44
707
+ 45
708
+ 46
709
+ 47
710
+ 48</pre>
711
+ </td>
712
+ <td>
713
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 37</span>
714
+
715
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_player_status_attributes identifier id'>player_status_attributes</span><span class='lparen token'>(</span><span class='rubyid_status_header identifier id'>status_header</span><span class='rparen token'>)</span>
716
+ <span class='rubyid_status_header identifier id'>status_header</span><span class='dot token'>.</span><span class='rubyid_split identifier id'>split</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_attribute identifier id'>attribute</span><span class='bitor op'>|</span>
717
+ <span class='rubyid_case case kw'>case</span> <span class='rubyid_attribute identifier id'>attribute</span>
718
+ <span class='rubyid_when when kw'>when</span> <span class='string val'>'connected'</span>
719
+ <span class='symbol val'>:time</span>
720
+ <span class='rubyid_when when kw'>when</span> <span class='string val'>'frag'</span>
721
+ <span class='symbol val'>:score</span>
722
+ <span class='rubyid_else else kw'>else</span>
723
+ <span class='rubyid_attribute identifier id'>attribute</span><span class='dot token'>.</span><span class='rubyid_to_sym identifier id'>to_sym</span>
724
+ <span class='rubyid_end end kw'>end</span>
725
+ <span class='rubyid_end end kw'>end</span>
726
+ <span class='rubyid_end end kw'>end</span>
727
+ </pre>
728
+ </td>
729
+ </tr>
730
+ </table>
731
+ </div>
732
+
733
+ <div class="method_details ">
734
+ <h3 class="signature " id="split_player_status-class_method">
735
+
736
+ + (<tt>Hash&lt;Symbol, String&gt;</tt>) <strong>split_player_status</strong>(attributes, player_status)
737
+
738
+
739
+
740
+
741
+
742
+ </h3><div class="docstring">
743
+ <div class="discussion">
744
+ <p>Splits the player status obtained with <code>rcon status</code></p>
745
+
746
+
747
+ </div>
748
+ </div>
749
+ <div class="tags">
750
+ <p class="tag_title">Parameters:</p>
751
+ <ul class="param">
752
+
753
+ <li>
754
+
755
+ <span class='name'>attributes</span>
756
+
757
+
758
+ <span class='type'>(<tt>Array&lt;Symbol&gt;</tt>)</span>
759
+
760
+
761
+
762
+ &mdash;
763
+ <div class='inline'><p>The attribute names</p>
764
+ </div>
765
+
766
+ </li>
767
+
768
+ <li>
769
+
770
+ <span class='name'>player_status</span>
771
+
772
+
773
+ <span class='type'>(<tt>String</tt>)</span>
774
+
775
+
776
+
777
+ &mdash;
778
+ <div class='inline'><p>The status line of a single player</p>
779
+ </div>
780
+
781
+ </li>
782
+
783
+ </ul>
784
+
785
+ <p class="tag_title">Returns:</p>
786
+ <ul class="return">
787
+
788
+ <li>
789
+
790
+
791
+ <span class='type'>(<tt>Hash&lt;Symbol, String&gt;</tt>)</span>
792
+
793
+
794
+
795
+ &mdash;
796
+ <div class='inline'><p>The attributes with the corresponding values
797
+ for this player</p>
798
+ </div>
799
+
800
+ </li>
801
+
802
+ </ul>
803
+
804
+ <p class="tag_title">See Also:</p>
805
+ <ul class="see">
806
+
807
+ <li><span class='object_link'><a href="#player_status_attributes-class_method" title="SteamCondenser::Servers::GameServer.player_status_attributes (method)">player_status_attributes</a></span></li>
808
+
809
+ </ul>
810
+
811
+ </div><table class="source_code">
812
+ <tr>
813
+ <td>
814
+ <pre class="lines">
815
+
816
+
817
+ 57
818
+ 58
819
+ 59
820
+ 60
821
+ 61
822
+ 62
823
+ 63
824
+ 64
825
+ 65
826
+ 66
827
+ 67
828
+ 68
829
+ 69
830
+ 70
831
+ 71
832
+ 72
833
+ 73
834
+ 74
835
+ 75
836
+ 76
837
+ 77
838
+ 78
839
+ 79
840
+ 80
841
+ 81
842
+ 82</pre>
843
+ </td>
844
+ <td>
845
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 57</span>
846
+
847
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_split_player_status identifier id'>split_player_status</span><span class='lparen token'>(</span><span class='rubyid_attributes identifier id'>attributes</span><span class='comma token'>,</span> <span class='rubyid_player_status identifier id'>player_status</span><span class='rparen token'>)</span>
848
+ <span class='rubyid_player_status identifier id'>player_status</span><span class='dot token'>.</span><span class='rubyid_sub! fid id'>sub!</span> <span class='regexp val'>/^\d+ +/</span><span class='comma token'>,</span> <span class='string val'>''</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_attributes identifier id'>attributes</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span> <span class='neq op'>!=</span> <span class='symbol val'>:userid</span>
849
+
850
+ <span class='rubyid_first_quote identifier id'>first_quote</span> <span class='assign token'>=</span> <span class='rubyid_player_status identifier id'>player_status</span><span class='dot token'>.</span><span class='rubyid_index identifier id'>index</span> <span class='string val'>'&quot;'</span>
851
+ <span class='rubyid_last_quote identifier id'>last_quote</span> <span class='assign token'>=</span> <span class='rubyid_player_status identifier id'>player_status</span><span class='dot token'>.</span><span class='rubyid_rindex identifier id'>rindex</span> <span class='string val'>'&quot;'</span>
852
+ <span class='rubyid_data identifier id'>data</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span>
853
+ <span class='rubyid_player_status identifier id'>player_status</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='comma token'>,</span> <span class='rubyid_first_quote identifier id'>first_quote</span><span class='rbrack token'>]</span><span class='comma token'>,</span>
854
+ <span class='rubyid_player_status identifier id'>player_status</span><span class='lbrack token'>[</span><span class='rubyid_first_quote identifier id'>first_quote</span> <span class='plus op'>+</span> <span class='float val'>1</span><span class='dot2 op'>..</span><span class='rubyid_last_quote identifier id'>last_quote</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rbrack token'>]</span><span class='comma token'>,</span>
855
+ <span class='rubyid_player_status identifier id'>player_status</span><span class='lbrack token'>[</span><span class='rubyid_last_quote identifier id'>last_quote</span> <span class='plus op'>+</span> <span class='float val'>1</span><span class='dot2 op'>..</span><span class='integer val'>-1</span><span class='rbrack token'>]</span>
856
+ <span class='rbrack token'>]</span>
857
+ <span class='rubyid_data identifier id'>data</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span> <span class='rubyid_data identifier id'>data</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_split identifier id'>split</span><span class='comma token'>,</span> <span class='rubyid_data identifier id'>data</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_data identifier id'>data</span><span class='lbrack token'>[</span><span class='integer val'>2</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_split identifier id'>split</span> <span class='rbrack token'>]</span>
858
+ <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_flatten! fid id'>flatten!</span>
859
+
860
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_attributes identifier id'>attributes</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span> <span class='gt op'>&gt;</span> <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span> <span class='andop op'>&amp;&amp;</span> <span class='rubyid_attributes identifier id'>attributes</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='symbol val'>:state</span><span class='rparen token'>)</span>
861
+ <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_insert identifier id'>insert</span> <span class='integer val'>3</span><span class='comma token'>,</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_nil nil kw'>nil</span>
862
+ <span class='rubyid_elsif elsif kw'>elsif</span> <span class='rubyid_attributes identifier id'>attributes</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span> <span class='lt op'>&lt;</span> <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span>
863
+ <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_delete_at identifier id'>delete_at</span> <span class='integer val'>1</span>
864
+ <span class='rubyid_end end kw'>end</span>
865
+
866
+ <span class='rubyid_player_data identifier id'>player_data</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
867
+ <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_each_index identifier id'>each_index</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_i identifier id'>i</span><span class='bitor op'>|</span>
868
+ <span class='rubyid_player_data identifier id'>player_data</span><span class='lbrack token'>[</span><span class='rubyid_attributes identifier id'>attributes</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_data identifier id'>data</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span><span class='rbrack token'>]</span>
869
+ <span class='rubyid_end end kw'>end</span>
870
+
871
+ <span class='rubyid_player_data identifier id'>player_data</span>
872
+ <span class='rubyid_end end kw'>end</span>
873
+ </pre>
874
+ </td>
875
+ </tr>
876
+ </table>
877
+ </div>
878
+
879
+ </div>
880
+
881
+ <div id="instance_method_details" class="method_details_list">
882
+ <h2>Instance Method Details</h2>
883
+
884
+
885
+ <div class="method_details first">
886
+ <h3 class="signature first" id="handle_response_for_request-instance_method">
887
+
888
+ - (<tt>Object</tt>) <strong>handle_response_for_request</strong>(request_type, repeat_on_failure = true)
889
+
890
+
891
+
892
+
893
+
894
+ </h3><div class="docstring">
895
+ <div class="discussion">
896
+ <p>Sends the specified request to the server and handles the returned response</p>
897
+
898
+ <p>Depending on the given request type this will fill the various data
899
+ attributes of the server object.</p>
900
+
901
+
902
+ </div>
903
+ </div>
904
+ <div class="tags">
905
+ <p class="tag_title">Parameters:</p>
906
+ <ul class="param">
907
+
908
+ <li>
909
+
910
+ <span class='name'>request_type</span>
911
+
912
+
913
+ <span class='type'>(<tt>Symbol</tt>)</span>
914
+
915
+
916
+
917
+ &mdash;
918
+ <div class='inline'><p>The type of request to send to the server</p>
919
+ </div>
920
+
921
+ </li>
922
+
923
+ <li>
924
+
925
+ <span class='name'>repeat_on_failure</span>
926
+
927
+
928
+ <span class='type'>(<tt>Boolean</tt>)</span>
929
+
930
+
931
+ <em class="default">(defaults to: <tt>true</tt>)</em>
932
+
933
+
934
+ &mdash;
935
+ <div class='inline'><p>Whether the request should be repeated,
936
+ if the replied packet isn&#39;t expected. This is useful to handle
937
+ missing challenge numbers, which will be automatically filled in,
938
+ although not requested explicitly.</p>
939
+ </div>
940
+
941
+ </li>
942
+
943
+ </ul>
944
+
945
+ <p class="tag_title">Raises:</p>
946
+ <ul class="raise">
947
+
948
+ <li>
949
+
950
+
951
+ <span class='type'>(<tt><span class='object_link'><a href="../Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
952
+
953
+
954
+
955
+ &mdash;
956
+ <div class='inline'><p>if either the request type or the response
957
+ packet is not known</p>
958
+ </div>
959
+
960
+ </li>
961
+
962
+ </ul>
963
+
964
+ </div><table class="source_code">
965
+ <tr>
966
+ <td>
967
+ <pre class="lines">
968
+
969
+
970
+ 207
971
+ 208
972
+ 209
973
+ 210
974
+ 211
975
+ 212
976
+ 213
977
+ 214
978
+ 215
979
+ 216
980
+ 217
981
+ 218
982
+ 219
983
+ 220
984
+ 221
985
+ 222
986
+ 223
987
+ 224
988
+ 225
989
+ 226
990
+ 227
991
+ 228
992
+ 229
993
+ 230
994
+ 231
995
+ 232
996
+ 233
997
+ 234
998
+ 235
999
+ 236
1000
+ 237
1001
+ 238
1002
+ 239
1003
+ 240
1004
+ 241
1005
+ 242
1006
+ 243
1007
+ 244
1008
+ 245
1009
+ 246
1010
+ 247
1011
+ 248</pre>
1012
+ </td>
1013
+ <td>
1014
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 207</span>
1015
+
1016
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_handle_response_for_request identifier id'>handle_response_for_request</span><span class='lparen token'>(</span><span class='rubyid_request_type identifier id'>request_type</span><span class='comma token'>,</span> <span class='rubyid_repeat_on_failure identifier id'>repeat_on_failure</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
1017
+ <span class='rubyid_case case kw'>case</span> <span class='rubyid_request_type identifier id'>request_type</span>
1018
+ <span class='rubyid_when when kw'>when</span> <span class='symbol val'>:challenge</span> <span class='rubyid_then then kw'>then</span>
1019
+ <span class='rubyid_request_packet identifier id'>request_packet</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_A2S_PLAYER_Packet constant id'>A2S_PLAYER_Packet</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
1020
+ <span class='rubyid_expected_response identifier id'>expected_response</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2C_CHALLENGE_Packet constant id'>S2C_CHALLENGE_Packet</span>
1021
+ <span class='rubyid_when when kw'>when</span> <span class='symbol val'>:info</span> <span class='rubyid_then then kw'>then</span>
1022
+ <span class='rubyid_request_packet identifier id'>request_packet</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_A2S_INFO_Packet constant id'>A2S_INFO_Packet</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
1023
+ <span class='rubyid_expected_response identifier id'>expected_response</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2A_INFO_BasePacket constant id'>S2A_INFO_BasePacket</span>
1024
+ <span class='rubyid_when when kw'>when</span> <span class='symbol val'>:players</span> <span class='rubyid_then then kw'>then</span>
1025
+ <span class='rubyid_request_packet identifier id'>request_packet</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_A2S_PLAYER_Packet constant id'>A2S_PLAYER_Packet</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_@challenge_number ivar id'>@challenge_number</span><span class='rparen token'>)</span>
1026
+ <span class='rubyid_expected_response identifier id'>expected_response</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2A_PLAYER_Packet constant id'>S2A_PLAYER_Packet</span>
1027
+ <span class='rubyid_when when kw'>when</span> <span class='symbol val'>:rules</span> <span class='rubyid_then then kw'>then</span>
1028
+ <span class='rubyid_request_packet identifier id'>request_packet</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_A2S_RULES_Packet constant id'>A2S_RULES_Packet</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_@challenge_number ivar id'>@challenge_number</span><span class='rparen token'>)</span>
1029
+ <span class='rubyid_expected_response identifier id'>expected_response</span> <span class='assign token'>=</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2A_RULES_Packet constant id'>S2A_RULES_Packet</span>
1030
+ <span class='rubyid_else else kw'>else</span>
1031
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenser constant id'>SteamCondenser</span><span class='colon2 op'>::</span><span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='string val'>'Called with wrong request type.'</span>
1032
+ <span class='rubyid_end end kw'>end</span>
1033
+
1034
+ <span class='rubyid_send_request identifier id'>send_request</span> <span class='rubyid_request_packet identifier id'>request_packet</span>
1035
+ <span class='rubyid_response_packet identifier id'>response_packet</span> <span class='assign token'>=</span> <span class='rubyid_reply identifier id'>reply</span>
1036
+
1037
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_kind_of? fid id'>kind_of?</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2A_INFO_BasePacket constant id'>S2A_INFO_BasePacket</span>
1038
+ <span class='rubyid_@info_hash ivar id'>@info_hash</span> <span class='assign token'>=</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_info identifier id'>info</span>
1039
+ <span class='rubyid_elsif elsif kw'>elsif</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_kind_of? fid id'>kind_of?</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2A_PLAYER_Packet constant id'>S2A_PLAYER_Packet</span>
1040
+ <span class='rubyid_@player_hash ivar id'>@player_hash</span> <span class='assign token'>=</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_player_hash identifier id'>player_hash</span>
1041
+ <span class='rubyid_elsif elsif kw'>elsif</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_kind_of? fid id'>kind_of?</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2A_RULES_Packet constant id'>S2A_RULES_Packet</span>
1042
+ <span class='rubyid_@rules_hash ivar id'>@rules_hash</span> <span class='assign token'>=</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_rules_hash identifier id'>rules_hash</span>
1043
+ <span class='rubyid_elsif elsif kw'>elsif</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_kind_of? fid id'>kind_of?</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_S2C_CHALLENGE_Packet constant id'>S2C_CHALLENGE_Packet</span>
1044
+ <span class='rubyid_@challenge_number ivar id'>@challenge_number</span> <span class='assign token'>=</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_challenge_number identifier id'>challenge_number</span>
1045
+ <span class='rubyid_else else kw'>else</span>
1046
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenser constant id'>SteamCondenser</span><span class='colon2 op'>::</span><span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='dstring node'>&quot;Response of type #{response_packet.class} cannot be handled by this method.&quot;</span>
1047
+ <span class='rubyid_end end kw'>end</span>
1048
+
1049
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_kind_of? fid id'>kind_of?</span> <span class='rubyid_expected_response identifier id'>expected_response</span>
1050
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_log identifier id'>log</span><span class='dot token'>.</span><span class='rubyid_info? fid id'>info?</span>
1051
+ <span class='rubyid_expected_class identifier id'>expected_class</span> <span class='assign token'>=</span> <span class='rubyid_expected_response identifier id'>expected_response</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span><span class='lbrack token'>[</span><span class='regexp val'>/[^:]*\z/</span><span class='rbrack token'>]</span>
1052
+ <span class='rubyid_response_class identifier id'>response_class</span> <span class='assign token'>=</span> <span class='rubyid_response_packet identifier id'>response_packet</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span><span class='lbrack token'>[</span><span class='regexp val'>/[^:]*\z/</span><span class='rbrack token'>]</span>
1053
+ <span class='rubyid_log identifier id'>log</span><span class='dot token'>.</span><span class='rubyid_info identifier id'>info</span> <span class='dstring node'>&quot;Expected #{expected_class}, got #{response_class}.&quot;</span>
1054
+ <span class='rubyid_end end kw'>end</span>
1055
+ <span class='rubyid_handle_response_for_request identifier id'>handle_response_for_request</span><span class='lparen token'>(</span><span class='rubyid_request_type identifier id'>request_type</span><span class='comma token'>,</span> <span class='rubyid_false false kw'>false</span><span class='rparen token'>)</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_repeat_on_failure identifier id'>repeat_on_failure</span>
1056
+ <span class='rubyid_end end kw'>end</span>
1057
+ <span class='rubyid_end end kw'>end</span>
1058
+ </pre>
1059
+ </td>
1060
+ </tr>
1061
+ </table>
1062
+ </div>
1063
+
1064
+ <div class="method_details ">
1065
+ <h3 class="signature " id="init-instance_method">
1066
+
1067
+ - (<tt>Object</tt>) <strong>init</strong>
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+ </h3><div class="docstring">
1074
+ <div class="discussion">
1075
+ <p>Initializes this server object with basic information</p>
1076
+
1077
+
1078
+ </div>
1079
+ </div>
1080
+ <div class="tags">
1081
+
1082
+
1083
+ <p class="tag_title">See Also:</p>
1084
+ <ul class="see">
1085
+
1086
+ <li><span class='object_link'><a href="#update_challenge_number-instance_method" title="SteamCondenser::Servers::GameServer#update_challenge_number (method)">#update_challenge_number</a></span></li>
1087
+
1088
+ <li><span class='object_link'><a href="#update_ping-instance_method" title="SteamCondenser::Servers::GameServer#update_ping (method)">#update_ping</a></span></li>
1089
+
1090
+ <li><span class='object_link'><a href="#update_server_info-instance_method" title="SteamCondenser::Servers::GameServer#update_server_info (method)">#update_server_info</a></span></li>
1091
+
1092
+ </ul>
1093
+
1094
+ </div><table class="source_code">
1095
+ <tr>
1096
+ <td>
1097
+ <pre class="lines">
1098
+
1099
+
1100
+ 255
1101
+ 256
1102
+ 257
1103
+ 258
1104
+ 259</pre>
1105
+ </td>
1106
+ <td>
1107
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 255</span>
1108
+
1109
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_init identifier id'>init</span>
1110
+ <span class='rubyid_update_ping identifier id'>update_ping</span>
1111
+ <span class='rubyid_update_server_info identifier id'>update_server_info</span>
1112
+ <span class='rubyid_update_challenge_number identifier id'>update_challenge_number</span>
1113
+ <span class='rubyid_end end kw'>end</span>
1114
+ </pre>
1115
+ </td>
1116
+ </tr>
1117
+ </table>
1118
+ </div>
1119
+
1120
+ <div class="method_details ">
1121
+ <h3 class="signature " id="initialize-instance_method">
1122
+
1123
+ - (<tt><span class='object_link'><a href="" title="SteamCondenser::Servers::GameServer (module)">GameServer</a></span></tt>) <strong>initialize</strong>(address, port = 27015)
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+ </h3><div class="docstring">
1130
+ <div class="discussion">
1131
+ <p>Creates a new instance of a game server object</p>
1132
+
1133
+
1134
+ </div>
1135
+ </div>
1136
+ <div class="tags">
1137
+ <p class="tag_title">Parameters:</p>
1138
+ <ul class="param">
1139
+
1140
+ <li>
1141
+
1142
+ <span class='name'>address</span>
1143
+
1144
+
1145
+ <span class='type'>(<tt>String</tt>)</span>
1146
+
1147
+
1148
+
1149
+ &mdash;
1150
+ <div class='inline'><p>Either an IP address, a DNS name or one of them
1151
+ combined with the port number. If a port number is given, e.g.
1152
+ &#39;server.example.com:27016&#39; it will override the second argument.</p>
1153
+ </div>
1154
+
1155
+ </li>
1156
+
1157
+ <li>
1158
+
1159
+ <span class='name'>port</span>
1160
+
1161
+
1162
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1163
+
1164
+
1165
+ <em class="default">(defaults to: <tt>27015</tt>)</em>
1166
+
1167
+
1168
+ &mdash;
1169
+ <div class='inline'><p>The port the server is listening on</p>
1170
+ </div>
1171
+
1172
+ </li>
1173
+
1174
+ </ul>
1175
+
1176
+ <p class="tag_title">Returns:</p>
1177
+ <ul class="return">
1178
+
1179
+ <li>
1180
+
1181
+
1182
+ <span class='type'>(<tt><span class='object_link'><a href="" title="SteamCondenser::Servers::GameServer (module)">GameServer</a></span></tt>)</span>
1183
+
1184
+
1185
+
1186
+ &mdash;
1187
+ <div class='inline'><p>a new instance of GameServer</p>
1188
+ </div>
1189
+
1190
+ </li>
1191
+
1192
+ </ul>
1193
+ <p class="tag_title">Raises:</p>
1194
+ <ul class="raise">
1195
+
1196
+ <li>
1197
+
1198
+
1199
+ <span class='type'>(<tt><span class='object_link'><a href="../Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
1200
+
1201
+
1202
+
1203
+ &mdash;
1204
+ <div class='inline'><p>if an host name cannot be resolved</p>
1205
+ </div>
1206
+
1207
+ </li>
1208
+
1209
+ </ul>
1210
+
1211
+ </div><table class="source_code">
1212
+ <tr>
1213
+ <td>
1214
+ <pre class="lines">
1215
+
1216
+
1217
+ 91
1218
+ 92
1219
+ 93
1220
+ 94
1221
+ 95</pre>
1222
+ </td>
1223
+ <td>
1224
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 91</span>
1225
+
1226
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_address identifier id'>address</span><span class='comma token'>,</span> <span class='rubyid_port identifier id'>port</span> <span class='assign token'>=</span> <span class='integer val'>27015</span><span class='rparen token'>)</span>
1227
+ <span class='rubyid_super super kw'>super</span>
1228
+
1229
+ <span class='rubyid_@rcon_authenticated ivar id'>@rcon_authenticated</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span>
1230
+ <span class='rubyid_end end kw'>end</span>
1231
+ </pre>
1232
+ </td>
1233
+ </tr>
1234
+ </table>
1235
+ </div>
1236
+
1237
+ <div class="method_details ">
1238
+ <h3 class="signature " id="ping-instance_method">
1239
+
1240
+ - (<tt>Fixnum</tt>) <strong>ping</strong>
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+ </h3><div class="docstring">
1247
+ <div class="discussion">
1248
+ <p>Returns the last measured response time of this server</p>
1249
+
1250
+ <p>If the latency hasn&#39;t been measured yet, it is done when calling this
1251
+ method for the first time.</p>
1252
+
1253
+ <p>If this information is vital to you, be sure to call <span class='object_link'><a href="#update_ping-instance_method" title="SteamCondenser::Servers::GameServer#update_ping (method)">#update_ping</a></span>
1254
+ regularly to stay up-to-date.</p>
1255
+
1256
+
1257
+ </div>
1258
+ </div>
1259
+ <div class="tags">
1260
+
1261
+ <p class="tag_title">Returns:</p>
1262
+ <ul class="return">
1263
+
1264
+ <li>
1265
+
1266
+
1267
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1268
+
1269
+
1270
+
1271
+ &mdash;
1272
+ <div class='inline'><p>The latency of this server in milliseconds</p>
1273
+ </div>
1274
+
1275
+ </li>
1276
+
1277
+ </ul>
1278
+
1279
+ <p class="tag_title">See Also:</p>
1280
+ <ul class="see">
1281
+
1282
+ <li><span class='object_link'><a href="#update_ping-instance_method" title="SteamCondenser::Servers::GameServer#update_ping (method)">#update_ping</a></span></li>
1283
+
1284
+ </ul>
1285
+
1286
+ </div><table class="source_code">
1287
+ <tr>
1288
+ <td>
1289
+ <pre class="lines">
1290
+
1291
+
1292
+ 107
1293
+ 108
1294
+ 109
1295
+ 110</pre>
1296
+ </td>
1297
+ <td>
1298
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 107</span>
1299
+
1300
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_ping identifier id'>ping</span>
1301
+ <span class='rubyid_update_ping identifier id'>update_ping</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@ping ivar id'>@ping</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1302
+ <span class='rubyid_@ping ivar id'>@ping</span>
1303
+ <span class='rubyid_end end kw'>end</span>
1304
+ </pre>
1305
+ </td>
1306
+ </tr>
1307
+ </table>
1308
+ </div>
1309
+
1310
+ <div class="method_details ">
1311
+ <h3 class="signature " id="players-instance_method">
1312
+
1313
+ - (<tt>Hash</tt>) <strong>players</strong>(rcon_password = nil)
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+ </h3><div class="docstring">
1320
+ <div class="discussion">
1321
+ <p>Returns a list of players currently playing on this server</p>
1322
+
1323
+ <p>If the players haven&#39;t been fetched yet, it is done when calling this
1324
+ method for the first time.</p>
1325
+
1326
+ <p>As the players and their scores change quite often be sure to update this
1327
+ list regularly by calling <span class='object_link'><a href="#update_players-instance_method" title="SteamCondenser::Servers::GameServer#update_players (method)">#update_players</a></span> if you rely on this
1328
+ information.</p>
1329
+
1330
+
1331
+ </div>
1332
+ </div>
1333
+ <div class="tags">
1334
+ <p class="tag_title">Parameters:</p>
1335
+ <ul class="param">
1336
+
1337
+ <li>
1338
+
1339
+ <span class='name'>rcon_password</span>
1340
+
1341
+
1342
+ <span class='type'>(<tt>String</tt>)</span>
1343
+
1344
+
1345
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1346
+
1347
+
1348
+ &mdash;
1349
+ <div class='inline'><p>The RCON password of this server may be
1350
+ provided to gather more detailed information on the players, like
1351
+ STEAM_IDs.</p>
1352
+ </div>
1353
+
1354
+ </li>
1355
+
1356
+ </ul>
1357
+
1358
+ <p class="tag_title">Returns:</p>
1359
+ <ul class="return">
1360
+
1361
+ <li>
1362
+
1363
+
1364
+ <span class='type'>(<tt>Hash</tt>)</span>
1365
+
1366
+
1367
+
1368
+ &mdash;
1369
+ <div class='inline'><p>The players on this server</p>
1370
+ </div>
1371
+
1372
+ </li>
1373
+
1374
+ </ul>
1375
+
1376
+ <p class="tag_title">See Also:</p>
1377
+ <ul class="see">
1378
+
1379
+ <li>update_players</li>
1380
+
1381
+ </ul>
1382
+
1383
+ </div><table class="source_code">
1384
+ <tr>
1385
+ <td>
1386
+ <pre class="lines">
1387
+
1388
+
1389
+ 126
1390
+ 127
1391
+ 128
1392
+ 129</pre>
1393
+ </td>
1394
+ <td>
1395
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 126</span>
1396
+
1397
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_players identifier id'>players</span><span class='lparen token'>(</span><span class='rubyid_rcon_password identifier id'>rcon_password</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1398
+ <span class='rubyid_update_players identifier id'>update_players</span><span class='lparen token'>(</span><span class='rubyid_rcon_password identifier id'>rcon_password</span><span class='rparen token'>)</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@player_hash ivar id'>@player_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1399
+ <span class='rubyid_@player_hash ivar id'>@player_hash</span>
1400
+ <span class='rubyid_end end kw'>end</span>
1401
+ </pre>
1402
+ </td>
1403
+ </tr>
1404
+ </table>
1405
+ </div>
1406
+
1407
+ <div class="method_details ">
1408
+ <h3 class="signature " id="rcon_auth-instance_method">
1409
+
1410
+ - (<tt>Boolean</tt>) <strong>rcon_auth</strong>(password)
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+ </h3><div class="docstring">
1417
+ <div class="discussion">
1418
+ <div class="note abstract">
1419
+ <strong>This method is abstract.</strong>
1420
+ <div class='inline'><p>Must be be implemented by including classes to handle the
1421
+ authentication</p>
1422
+ </div>
1423
+ </div>
1424
+ <p>Authenticates the connection for RCON communication with the server</p>
1425
+
1426
+
1427
+ </div>
1428
+ </div>
1429
+ <div class="tags">
1430
+ <p class="tag_title">Parameters:</p>
1431
+ <ul class="param">
1432
+
1433
+ <li>
1434
+
1435
+ <span class='name'>password</span>
1436
+
1437
+
1438
+ <span class='type'>(<tt>String</tt>)</span>
1439
+
1440
+
1441
+
1442
+ &mdash;
1443
+ <div class='inline'><p>The RCON password of the server</p>
1444
+ </div>
1445
+
1446
+ </li>
1447
+
1448
+ </ul>
1449
+
1450
+ <p class="tag_title">Returns:</p>
1451
+ <ul class="return">
1452
+
1453
+ <li>
1454
+
1455
+
1456
+ <span class='type'>(<tt>Boolean</tt>)</span>
1457
+
1458
+
1459
+
1460
+ &mdash;
1461
+ <div class='inline'><p>whether the authentication was successful</p>
1462
+ </div>
1463
+
1464
+ </li>
1465
+
1466
+ </ul>
1467
+ <p class="tag_title">Raises:</p>
1468
+ <ul class="raise">
1469
+
1470
+ <li>
1471
+
1472
+
1473
+ <span class='type'>(<tt>NotImplementedError</tt>)</span>
1474
+
1475
+
1476
+
1477
+ </li>
1478
+
1479
+ </ul>
1480
+
1481
+ <p class="tag_title">See Also:</p>
1482
+ <ul class="see">
1483
+
1484
+ <li><span class='object_link'><a href="#rcon_exec-instance_method" title="SteamCondenser::Servers::GameServer#rcon_exec (method)">#rcon_exec</a></span></li>
1485
+
1486
+ </ul>
1487
+
1488
+ </div><table class="source_code">
1489
+ <tr>
1490
+ <td>
1491
+ <pre class="lines">
1492
+
1493
+
1494
+ 138
1495
+ 139
1496
+ 140</pre>
1497
+ </td>
1498
+ <td>
1499
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 138</span>
1500
+
1501
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_rcon_auth identifier id'>rcon_auth</span><span class='lparen token'>(</span><span class='rubyid_password identifier id'>password</span><span class='rparen token'>)</span>
1502
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_NotImplementedError constant id'>NotImplementedError</span>
1503
+ <span class='rubyid_end end kw'>end</span>
1504
+ </pre>
1505
+ </td>
1506
+ </tr>
1507
+ </table>
1508
+ </div>
1509
+
1510
+ <div class="method_details ">
1511
+ <h3 class="signature " id="rcon_authenticated?-instance_method">
1512
+
1513
+ - (<tt>Boolean</tt>) <strong>rcon_authenticated?</strong>
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+ </h3><div class="docstring">
1520
+ <div class="discussion">
1521
+ <p>Returns whether the RCON connection to this server is already authenticated</p>
1522
+
1523
+
1524
+ </div>
1525
+ </div>
1526
+ <div class="tags">
1527
+
1528
+ <p class="tag_title">Returns:</p>
1529
+ <ul class="return">
1530
+
1531
+ <li>
1532
+
1533
+
1534
+ <span class='type'>(<tt>Boolean</tt>)</span>
1535
+
1536
+
1537
+
1538
+ &mdash;
1539
+ <div class='inline'><p><code>true</code> if the RCON connection is authenticated</p>
1540
+ </div>
1541
+
1542
+ </li>
1543
+
1544
+ </ul>
1545
+
1546
+ <p class="tag_title">See Also:</p>
1547
+ <ul class="see">
1548
+
1549
+ <li><span class='object_link'><a href="#rcon_auth-instance_method" title="SteamCondenser::Servers::GameServer#rcon_auth (method)">#rcon_auth</a></span></li>
1550
+
1551
+ </ul>
1552
+
1553
+ </div><table class="source_code">
1554
+ <tr>
1555
+ <td>
1556
+ <pre class="lines">
1557
+
1558
+
1559
+ 146
1560
+ 147
1561
+ 148</pre>
1562
+ </td>
1563
+ <td>
1564
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 146</span>
1565
+
1566
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_rcon_authenticated? fid id'>rcon_authenticated?</span>
1567
+ <span class='rubyid_@rcon_authenticated ivar id'>@rcon_authenticated</span>
1568
+ <span class='rubyid_end end kw'>end</span>
1569
+ </pre>
1570
+ </td>
1571
+ </tr>
1572
+ </table>
1573
+ </div>
1574
+
1575
+ <div class="method_details ">
1576
+ <h3 class="signature " id="rcon_exec-instance_method">
1577
+
1578
+ - (<tt>String</tt>) <strong>rcon_exec</strong>(command)
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+ </h3><div class="docstring">
1585
+ <div class="discussion">
1586
+ <div class="note abstract">
1587
+ <strong>This method is abstract.</strong>
1588
+ <div class='inline'><p>Must be be implemented by including classes to handle the command
1589
+ execution</p>
1590
+ </div>
1591
+ </div>
1592
+ <p>Remotely executes a command on the server via RCON</p>
1593
+
1594
+
1595
+ </div>
1596
+ </div>
1597
+ <div class="tags">
1598
+ <p class="tag_title">Parameters:</p>
1599
+ <ul class="param">
1600
+
1601
+ <li>
1602
+
1603
+ <span class='name'>command</span>
1604
+
1605
+
1606
+ <span class='type'>(<tt>String</tt>)</span>
1607
+
1608
+
1609
+
1610
+ &mdash;
1611
+ <div class='inline'><p>The command to execute on the server</p>
1612
+ </div>
1613
+
1614
+ </li>
1615
+
1616
+ </ul>
1617
+
1618
+ <p class="tag_title">Returns:</p>
1619
+ <ul class="return">
1620
+
1621
+ <li>
1622
+
1623
+
1624
+ <span class='type'>(<tt>String</tt>)</span>
1625
+
1626
+
1627
+
1628
+ &mdash;
1629
+ <div class='inline'><p>The output of the executed command</p>
1630
+ </div>
1631
+
1632
+ </li>
1633
+
1634
+ </ul>
1635
+ <p class="tag_title">Raises:</p>
1636
+ <ul class="raise">
1637
+
1638
+ <li>
1639
+
1640
+
1641
+ <span class='type'>(<tt>NotImplementedError</tt>)</span>
1642
+
1643
+
1644
+
1645
+ </li>
1646
+
1647
+ </ul>
1648
+
1649
+ <p class="tag_title">See Also:</p>
1650
+ <ul class="see">
1651
+
1652
+ <li><span class='object_link'><a href="#rcon_auth-instance_method" title="SteamCondenser::Servers::GameServer#rcon_auth (method)">#rcon_auth</a></span></li>
1653
+
1654
+ </ul>
1655
+
1656
+ </div><table class="source_code">
1657
+ <tr>
1658
+ <td>
1659
+ <pre class="lines">
1660
+
1661
+
1662
+ 157
1663
+ 158
1664
+ 159</pre>
1665
+ </td>
1666
+ <td>
1667
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 157</span>
1668
+
1669
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_rcon_exec identifier id'>rcon_exec</span><span class='lparen token'>(</span><span class='rubyid_command identifier id'>command</span><span class='rparen token'>)</span>
1670
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_NotImplementedError constant id'>NotImplementedError</span>
1671
+ <span class='rubyid_end end kw'>end</span>
1672
+ </pre>
1673
+ </td>
1674
+ </tr>
1675
+ </table>
1676
+ </div>
1677
+
1678
+ <div class="method_details ">
1679
+ <h3 class="signature " id="reply-instance_method">
1680
+
1681
+ - (<tt><span class='object_link'><a href="Packets/BasePacket.html" title="SteamCondenser::Servers::Packets::BasePacket (module)">Packets::BasePacket</a></span></tt>) <strong>reply</strong> <span class="extras">(protected)</span>
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+ </h3><div class="docstring">
1688
+ <div class="discussion">
1689
+ <p>Receives a response from the server</p>
1690
+
1691
+
1692
+ </div>
1693
+ </div>
1694
+ <div class="tags">
1695
+
1696
+ <p class="tag_title">Returns:</p>
1697
+ <ul class="return">
1698
+
1699
+ <li>
1700
+
1701
+
1702
+ <span class='type'>(<tt><span class='object_link'><a href="Packets/BasePacket.html" title="SteamCondenser::Servers::Packets::BasePacket (module)">Packets::BasePacket</a></span></tt>)</span>
1703
+
1704
+
1705
+
1706
+ &mdash;
1707
+ <div class='inline'><p>The response packet replied by the server</p>
1708
+ </div>
1709
+
1710
+ </li>
1711
+
1712
+ </ul>
1713
+
1714
+ </div><table class="source_code">
1715
+ <tr>
1716
+ <td>
1717
+ <pre class="lines">
1718
+
1719
+
1720
+ 390
1721
+ 391
1722
+ 392</pre>
1723
+ </td>
1724
+ <td>
1725
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 390</span>
1726
+
1727
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_reply identifier id'>reply</span>
1728
+ <span class='rubyid_@socket ivar id'>@socket</span><span class='dot token'>.</span><span class='rubyid_reply identifier id'>reply</span>
1729
+ <span class='rubyid_end end kw'>end</span>
1730
+ </pre>
1731
+ </td>
1732
+ </tr>
1733
+ </table>
1734
+ </div>
1735
+
1736
+ <div class="method_details ">
1737
+ <h3 class="signature " id="rules-instance_method">
1738
+
1739
+ - (<tt>Hash&lt;String, String&gt;</tt>) <strong>rules</strong>
1740
+
1741
+
1742
+
1743
+
1744
+
1745
+ </h3><div class="docstring">
1746
+ <div class="discussion">
1747
+ <p>Returns the settings applied on the server. These settings are also called
1748
+ rules.</p>
1749
+
1750
+ <p>If the rules haven&#39;t been fetched yet, it is done when calling this method
1751
+ for the first time.</p>
1752
+
1753
+ <p>As the rules usually don&#39;t change often, there&#39;s almost no need to update
1754
+ this hash. But if you need to, you can achieve this by calling
1755
+ <span class='object_link'><a href="#update_rules-instance_method" title="SteamCondenser::Servers::GameServer#update_rules (method)">#update_rules</a></span>.</p>
1756
+
1757
+
1758
+ </div>
1759
+ </div>
1760
+ <div class="tags">
1761
+
1762
+ <p class="tag_title">Returns:</p>
1763
+ <ul class="return">
1764
+
1765
+ <li>
1766
+
1767
+
1768
+ <span class='type'>(<tt>Hash&lt;String, String&gt;</tt>)</span>
1769
+
1770
+
1771
+
1772
+ &mdash;
1773
+ <div class='inline'><p>The currently active server rules</p>
1774
+ </div>
1775
+
1776
+ </li>
1777
+
1778
+ </ul>
1779
+
1780
+ <p class="tag_title">See Also:</p>
1781
+ <ul class="see">
1782
+
1783
+ <li><span class='object_link'><a href="#update_rules-instance_method" title="SteamCondenser::Servers::GameServer#update_rules (method)">#update_rules</a></span></li>
1784
+
1785
+ </ul>
1786
+
1787
+ </div><table class="source_code">
1788
+ <tr>
1789
+ <td>
1790
+ <pre class="lines">
1791
+
1792
+
1793
+ 173
1794
+ 174
1795
+ 175
1796
+ 176</pre>
1797
+ </td>
1798
+ <td>
1799
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 173</span>
1800
+
1801
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_rules identifier id'>rules</span>
1802
+ <span class='rubyid_update_rules identifier id'>update_rules</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@rules_hash ivar id'>@rules_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1803
+ <span class='rubyid_@rules_hash ivar id'>@rules_hash</span>
1804
+ <span class='rubyid_end end kw'>end</span>
1805
+ </pre>
1806
+ </td>
1807
+ </tr>
1808
+ </table>
1809
+ </div>
1810
+
1811
+ <div class="method_details ">
1812
+ <h3 class="signature " id="send_request-instance_method">
1813
+
1814
+ - (<tt>Object</tt>) <strong>send_request</strong>(packet) <span class="extras">(protected)</span>
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+ </h3><div class="docstring">
1821
+ <div class="discussion">
1822
+ <p>Sends a request packet to the server</p>
1823
+
1824
+
1825
+ </div>
1826
+ </div>
1827
+ <div class="tags">
1828
+ <p class="tag_title">Parameters:</p>
1829
+ <ul class="param">
1830
+
1831
+ <li>
1832
+
1833
+ <span class='name'>packet</span>
1834
+
1835
+
1836
+ <span class='type'>(<tt><span class='object_link'><a href="Packets/BasePacket.html" title="SteamCondenser::Servers::Packets::BasePacket (module)">Packets::BasePacket</a></span></tt>)</span>
1837
+
1838
+
1839
+
1840
+ &mdash;
1841
+ <div class='inline'><p>The request packet to send to the
1842
+ server</p>
1843
+ </div>
1844
+
1845
+ </li>
1846
+
1847
+ </ul>
1848
+
1849
+
1850
+ </div><table class="source_code">
1851
+ <tr>
1852
+ <td>
1853
+ <pre class="lines">
1854
+
1855
+
1856
+ 398
1857
+ 399
1858
+ 400</pre>
1859
+ </td>
1860
+ <td>
1861
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 398</span>
1862
+
1863
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_send_request identifier id'>send_request</span><span class='lparen token'>(</span><span class='rubyid_packet identifier id'>packet</span><span class='rparen token'>)</span>
1864
+ <span class='rubyid_@socket ivar id'>@socket</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span> <span class='rubyid_packet identifier id'>packet</span>
1865
+ <span class='rubyid_end end kw'>end</span>
1866
+ </pre>
1867
+ </td>
1868
+ </tr>
1869
+ </table>
1870
+ </div>
1871
+
1872
+ <div class="method_details ">
1873
+ <h3 class="signature " id="server_info-instance_method">
1874
+
1875
+ - (<tt>Hash</tt>) <strong>server_info</strong>
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+ </h3><div class="docstring">
1882
+ <div class="discussion">
1883
+ <p>Returns a hash with basic information on the server.</p>
1884
+
1885
+ <p>If the server information haven&#39;t been fetched yet, it is done when
1886
+ calling this method for the first time.</p>
1887
+
1888
+ <p>The server information usually only changes on map change and when players
1889
+ join or leave. As the latter changes can be monitored by calling
1890
+ <span class='object_link'><a href="#update_players-instance_method" title="SteamCondenser::Servers::GameServer#update_players (method)">#update_players</a></span>, there&#39;s no need to call <span class='object_link'><a href="#update_server_info-instance_method" title="SteamCondenser::Servers::GameServer#update_server_info (method)">#update_server_info</a></span> very
1891
+ often.</p>
1892
+
1893
+
1894
+ </div>
1895
+ </div>
1896
+ <div class="tags">
1897
+
1898
+ <p class="tag_title">Returns:</p>
1899
+ <ul class="return">
1900
+
1901
+ <li>
1902
+
1903
+
1904
+ <span class='type'>(<tt>Hash</tt>)</span>
1905
+
1906
+
1907
+
1908
+ &mdash;
1909
+ <div class='inline'><p>Server attributes with their values</p>
1910
+ </div>
1911
+
1912
+ </li>
1913
+
1914
+ </ul>
1915
+
1916
+ <p class="tag_title">See Also:</p>
1917
+ <ul class="see">
1918
+
1919
+ <li><span class='object_link'><a href="#update_server_info-instance_method" title="SteamCondenser::Servers::GameServer#update_server_info (method)">#update_server_info</a></span></li>
1920
+
1921
+ </ul>
1922
+
1923
+ </div><table class="source_code">
1924
+ <tr>
1925
+ <td>
1926
+ <pre class="lines">
1927
+
1928
+
1929
+ 190
1930
+ 191
1931
+ 192
1932
+ 193</pre>
1933
+ </td>
1934
+ <td>
1935
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 190</span>
1936
+
1937
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_server_info identifier id'>server_info</span>
1938
+ <span class='rubyid_update_server_info identifier id'>update_server_info</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@info_hash ivar id'>@info_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1939
+ <span class='rubyid_@info_hash ivar id'>@info_hash</span>
1940
+ <span class='rubyid_end end kw'>end</span>
1941
+ </pre>
1942
+ </td>
1943
+ </tr>
1944
+ </table>
1945
+ </div>
1946
+
1947
+ <div class="method_details ">
1948
+ <h3 class="signature " id="to_s-instance_method">
1949
+
1950
+ - (<tt>String</tt>) <strong>to_s</strong>
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+ </h3><div class="docstring">
1957
+ <div class="discussion">
1958
+ <p>Returns a human-readable text representation of the server</p>
1959
+
1960
+
1961
+ </div>
1962
+ </div>
1963
+ <div class="tags">
1964
+
1965
+ <p class="tag_title">Returns:</p>
1966
+ <ul class="return">
1967
+
1968
+ <li>
1969
+
1970
+
1971
+ <span class='type'>(<tt>String</tt>)</span>
1972
+
1973
+
1974
+
1975
+ &mdash;
1976
+ <div class='inline'><p>Available information about the server in a human-readable
1977
+ format</p>
1978
+ </div>
1979
+
1980
+ </li>
1981
+
1982
+ </ul>
1983
+
1984
+ </div><table class="source_code">
1985
+ <tr>
1986
+ <td>
1987
+ <pre class="lines">
1988
+
1989
+
1990
+ 355
1991
+ 356
1992
+ 357
1993
+ 358
1994
+ 359
1995
+ 360
1996
+ 361
1997
+ 362
1998
+ 363
1999
+ 364
2000
+ 365
2001
+ 366
2002
+ 367
2003
+ 368
2004
+ 369
2005
+ 370
2006
+ 371
2007
+ 372
2008
+ 373
2009
+ 374
2010
+ 375
2011
+ 376
2012
+ 377
2013
+ 378
2014
+ 379
2015
+ 380
2016
+ 381
2017
+ 382
2018
+ 383</pre>
2019
+ </td>
2020
+ <td>
2021
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 355</span>
2022
+
2023
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_s identifier id'>to_s</span>
2024
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='assign token'>=</span> <span class='string val'>''</span>
2025
+
2026
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='string val'>&quot;Ping: #@ping\n&quot;</span>
2027
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='string val'>&quot;Challenge number: #@challenge_number\n&quot;</span>
2028
+
2029
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_@info_hash ivar id'>@info_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
2030
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='string val'>&quot;Info:\n&quot;</span>
2031
+ <span class='rubyid_@info_hash ivar id'>@info_hash</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_value identifier id'>value</span><span class='bitor op'>|</span>
2032
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='dstring node'>&quot; #{key}: #{value.inspect}\n&quot;</span>
2033
+ <span class='rubyid_end end kw'>end</span>
2034
+ <span class='rubyid_end end kw'>end</span>
2035
+
2036
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_@player_hash ivar id'>@player_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
2037
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='string val'>&quot;Players:\n&quot;</span>
2038
+ <span class='rubyid_@player_hash ivar id'>@player_hash</span><span class='dot token'>.</span><span class='rubyid_each_value identifier id'>each_value</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_player identifier id'>player</span><span class='bitor op'>|</span>
2039
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='dstring node'>&quot; #{player}\n&quot;</span>
2040
+ <span class='rubyid_end end kw'>end</span>
2041
+ <span class='rubyid_end end kw'>end</span>
2042
+
2043
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_@rules_hash ivar id'>@rules_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
2044
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='string val'>&quot;Rules:\n&quot;</span>
2045
+ <span class='rubyid_@rules_hash ivar id'>@rules_hash</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_value identifier id'>value</span><span class='bitor op'>|</span>
2046
+ <span class='rubyid_return_string identifier id'>return_string</span> <span class='lshft op'>&lt;&lt;</span> <span class='dstring node'>&quot; #{key}: #{value}\n&quot;</span>
2047
+ <span class='rubyid_end end kw'>end</span>
2048
+ <span class='rubyid_end end kw'>end</span>
2049
+
2050
+ <span class='rubyid_return_string identifier id'>return_string</span>
2051
+ <span class='rubyid_end end kw'>end</span>
2052
+ </pre>
2053
+ </td>
2054
+ </tr>
2055
+ </table>
2056
+ </div>
2057
+
2058
+ <div class="method_details ">
2059
+ <h3 class="signature " id="update_challenge_number-instance_method">
2060
+
2061
+ - (<tt>Object</tt>) <strong>update_challenge_number</strong>
2062
+
2063
+
2064
+
2065
+
2066
+
2067
+ </h3><div class="docstring">
2068
+ <div class="discussion">
2069
+ <p>Sends a A2S_SERVERQUERY_GETCHALLENGE request to the server and updates the
2070
+ challenge number used to communicate with this server</p>
2071
+
2072
+ <p>There&#39;s usually no need to call this method explicitly, because
2073
+ <span class='object_link'><a href="#handle_response_for_request-instance_method" title="SteamCondenser::Servers::GameServer#handle_response_for_request (method)">#handle_response_for_request</a></span> will automatically get the challenge number
2074
+ when the server assigns a new one.</p>
2075
+
2076
+
2077
+ </div>
2078
+ </div>
2079
+ <div class="tags">
2080
+
2081
+
2082
+ <p class="tag_title">See Also:</p>
2083
+ <ul class="see">
2084
+
2085
+ <li><span class='object_link'><a href="#handle_response_for_request-instance_method" title="SteamCondenser::Servers::GameServer#handle_response_for_request (method)">#handle_response_for_request</a></span></li>
2086
+
2087
+ <li><span class='object_link'><a href="#init-instance_method" title="SteamCondenser::Servers::GameServer#init (method)">#init</a></span></li>
2088
+
2089
+ </ul>
2090
+
2091
+ </div><table class="source_code">
2092
+ <tr>
2093
+ <td>
2094
+ <pre class="lines">
2095
+
2096
+
2097
+ 331
2098
+ 332
2099
+ 333</pre>
2100
+ </td>
2101
+ <td>
2102
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 331</span>
2103
+
2104
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_update_challenge_number identifier id'>update_challenge_number</span>
2105
+ <span class='rubyid_handle_response_for_request identifier id'>handle_response_for_request</span> <span class='symbol val'>:challenge</span>
2106
+ <span class='rubyid_end end kw'>end</span>
2107
+ </pre>
2108
+ </td>
2109
+ </tr>
2110
+ </table>
2111
+ </div>
2112
+
2113
+ <div class="method_details ">
2114
+ <h3 class="signature " id="update_ping-instance_method">
2115
+
2116
+ - (<tt>Fixnum</tt>) <strong>update_ping</strong>
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+ </h3><div class="docstring">
2123
+ <div class="discussion">
2124
+ <p>Sends a A2S_INFO request to the server and measures the time needed for the
2125
+ reply</p>
2126
+
2127
+ <p>If this information is vital to you, be sure to call this method regularly
2128
+ to stay up-to-date.</p>
2129
+
2130
+
2131
+ </div>
2132
+ </div>
2133
+ <div class="tags">
2134
+
2135
+ <p class="tag_title">Returns:</p>
2136
+ <ul class="return">
2137
+
2138
+ <li>
2139
+
2140
+
2141
+ <span class='type'>(<tt>Fixnum</tt>)</span>
2142
+
2143
+
2144
+
2145
+ &mdash;
2146
+ <div class='inline'><p>The latency of this server in milliseconds</p>
2147
+ </div>
2148
+
2149
+ </li>
2150
+
2151
+ </ul>
2152
+
2153
+ <p class="tag_title">See Also:</p>
2154
+ <ul class="see">
2155
+
2156
+ <li><span class='object_link'><a href="#ping-instance_method" title="SteamCondenser::Servers::GameServer#ping (method)">#ping</a></span></li>
2157
+
2158
+ </ul>
2159
+
2160
+ </div><table class="source_code">
2161
+ <tr>
2162
+ <td>
2163
+ <pre class="lines">
2164
+
2165
+
2166
+ 343
2167
+ 344
2168
+ 345
2169
+ 346
2170
+ 347
2171
+ 348
2172
+ 349</pre>
2173
+ </td>
2174
+ <td>
2175
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 343</span>
2176
+
2177
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_update_ping identifier id'>update_ping</span>
2178
+ <span class='rubyid_send_request identifier id'>send_request</span> <span class='rubyid_Packets constant id'>Packets</span><span class='colon2 op'>::</span><span class='rubyid_A2S_INFO_Packet constant id'>A2S_INFO_Packet</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
2179
+ <span class='rubyid_start_time identifier id'>start_time</span> <span class='assign token'>=</span> <span class='rubyid_Time constant id'>Time</span><span class='dot token'>.</span><span class='rubyid_now identifier id'>now</span>
2180
+ <span class='rubyid_reply identifier id'>reply</span>
2181
+ <span class='rubyid_end_time identifier id'>end_time</span> <span class='assign token'>=</span> <span class='rubyid_Time constant id'>Time</span><span class='dot token'>.</span><span class='rubyid_now identifier id'>now</span>
2182
+ <span class='rubyid_@ping ivar id'>@ping</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_end_time identifier id'>end_time</span> <span class='minus op'>-</span> <span class='rubyid_start_time identifier id'>start_time</span><span class='rparen token'>)</span> <span class='mult op'>*</span> <span class='integer val'>1000</span>
2183
+ <span class='rubyid_end end kw'>end</span>
2184
+ </pre>
2185
+ </td>
2186
+ </tr>
2187
+ </table>
2188
+ </div>
2189
+
2190
+ <div class="method_details ">
2191
+ <h3 class="signature " id="update_players-instance_method">
2192
+
2193
+ - (<tt>Object</tt>) <strong>update_players</strong>(rcon_password = nil)
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+ </h3><div class="docstring">
2200
+ <div class="discussion">
2201
+ <p>Sends a A2S_PLAYERS request to the server and updates the players&#39; data for
2202
+ this server</p>
2203
+
2204
+ <p>As the players and their scores change quite often be sure to update this
2205
+ list regularly by calling this method if you rely on this
2206
+ information.</p>
2207
+
2208
+
2209
+ </div>
2210
+ </div>
2211
+ <div class="tags">
2212
+ <p class="tag_title">Parameters:</p>
2213
+ <ul class="param">
2214
+
2215
+ <li>
2216
+
2217
+ <span class='name'>rcon_password</span>
2218
+
2219
+
2220
+ <span class='type'>(<tt>String</tt>)</span>
2221
+
2222
+
2223
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
2224
+
2225
+
2226
+ &mdash;
2227
+ <div class='inline'><p>The RCON password of this server may be
2228
+ provided to gather more detailed information on the players, like
2229
+ STEAM_IDs.</p>
2230
+ </div>
2231
+
2232
+ </li>
2233
+
2234
+ </ul>
2235
+
2236
+
2237
+ <p class="tag_title">See Also:</p>
2238
+ <ul class="see">
2239
+
2240
+ <li><span class='object_link'><a href="#handle_response_for_request-instance_method" title="SteamCondenser::Servers::GameServer#handle_response_for_request (method)">#handle_response_for_request</a></span></li>
2241
+
2242
+ <li><span class='object_link'><a href="#players-instance_method" title="SteamCondenser::Servers::GameServer#players (method)">#players</a></span></li>
2243
+
2244
+ </ul>
2245
+
2246
+ </div><table class="source_code">
2247
+ <tr>
2248
+ <td>
2249
+ <pre class="lines">
2250
+
2251
+
2252
+ 273
2253
+ 274
2254
+ 275
2255
+ 276
2256
+ 277
2257
+ 278
2258
+ 279
2259
+ 280
2260
+ 281
2261
+ 282
2262
+ 283
2263
+ 284
2264
+ 285
2265
+ 286
2266
+ 287
2267
+ 288
2268
+ 289
2269
+ 290
2270
+ 291
2271
+ 292
2272
+ 293
2273
+ 294
2274
+ 295</pre>
2275
+ </td>
2276
+ <td>
2277
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 273</span>
2278
+
2279
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_update_players identifier id'>update_players</span><span class='lparen token'>(</span><span class='rubyid_rcon_password identifier id'>rcon_password</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
2280
+ <span class='rubyid_handle_response_for_request identifier id'>handle_response_for_request</span> <span class='symbol val'>:players</span>
2281
+
2282
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_@rcon_authenticated ivar id'>@rcon_authenticated</span>
2283
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_rcon_password identifier id'>rcon_password</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
2284
+ <span class='rubyid_rcon_auth identifier id'>rcon_auth</span> <span class='rubyid_rcon_password identifier id'>rcon_password</span>
2285
+ <span class='rubyid_end end kw'>end</span>
2286
+
2287
+ <span class='rubyid_players identifier id'>players</span> <span class='assign token'>=</span> <span class='rubyid_rcon_exec identifier id'>rcon_exec</span><span class='lparen token'>(</span><span class='string val'>'status'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_lines identifier id'>lines</span><span class='dot token'>.</span><span class='rubyid_select identifier id'>select</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_line identifier id'>line</span><span class='bitor op'>|</span>
2288
+ <span class='rubyid_line identifier id'>line</span><span class='dot token'>.</span><span class='rubyid_start_with? fid id'>start_with?</span><span class='lparen token'>(</span><span class='string val'>'#'</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='rubyid_line identifier id'>line</span> <span class='neq op'>!=</span> <span class='string val'>&quot;#end\n&quot;</span>
2289
+ <span class='rubyid_end end kw'>end</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_line identifier id'>line</span><span class='bitor op'>|</span>
2290
+ <span class='rubyid_line identifier id'>line</span><span class='lbrack token'>[</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='integer val'>-1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_strip identifier id'>strip</span>
2291
+ <span class='rubyid_end end kw'>end</span>
2292
+ <span class='rubyid_attributes identifier id'>attributes</span> <span class='assign token'>=</span> <span class='rubyid_GameServer constant id'>GameServer</span><span class='dot token'>.</span><span class='rubyid_player_status_attributes identifier id'>player_status_attributes</span> <span class='rubyid_players identifier id'>players</span><span class='dot token'>.</span><span class='rubyid_shift identifier id'>shift</span>
2293
+
2294
+ <span class='rubyid_players identifier id'>players</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_player identifier id'>player</span><span class='bitor op'>|</span>
2295
+ <span class='rubyid_player_data identifier id'>player_data</span> <span class='assign token'>=</span> <span class='rubyid_GameServer constant id'>GameServer</span><span class='dot token'>.</span><span class='rubyid_split_player_status identifier id'>split_player_status</span><span class='lparen token'>(</span><span class='rubyid_attributes identifier id'>attributes</span><span class='comma token'>,</span> <span class='rubyid_player identifier id'>player</span><span class='rparen token'>)</span>
2296
+ <span class='rubyid_player_name identifier id'>player_name</span> <span class='assign token'>=</span> <span class='rubyid_player_data identifier id'>player_data</span><span class='lbrack token'>[</span><span class='symbol val'>:name</span><span class='rbrack token'>]</span>
2297
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_@player_hash ivar id'>@player_hash</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='rubyid_player_name identifier id'>player_name</span>
2298
+ <span class='rubyid_@player_hash ivar id'>@player_hash</span><span class='lbrack token'>[</span><span class='rubyid_player_name identifier id'>player_name</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_add_info identifier id'>add_info</span> <span class='rubyid_player_data identifier id'>player_data</span>
2299
+ <span class='rubyid_end end kw'>end</span>
2300
+ <span class='rubyid_end end kw'>end</span>
2301
+ <span class='rubyid_end end kw'>end</span>
2302
+ </pre>
2303
+ </td>
2304
+ </tr>
2305
+ </table>
2306
+ </div>
2307
+
2308
+ <div class="method_details ">
2309
+ <h3 class="signature " id="update_rules-instance_method">
2310
+
2311
+ - (<tt>Object</tt>) <strong>update_rules</strong>
2312
+
2313
+
2314
+
2315
+
2316
+
2317
+ </h3><div class="docstring">
2318
+ <div class="discussion">
2319
+ <p>Sends a A2S_RULES request to the server and updates the rules of this
2320
+ server</p>
2321
+
2322
+ <p>As the rules usually don&#39;t change often, there&#39;s almost no need to update
2323
+ this hash. But if you need to, you can achieve this by calling this method.</p>
2324
+
2325
+
2326
+ </div>
2327
+ </div>
2328
+ <div class="tags">
2329
+
2330
+
2331
+ <p class="tag_title">See Also:</p>
2332
+ <ul class="see">
2333
+
2334
+ <li><span class='object_link'><a href="#handle_response_for_request-instance_method" title="SteamCondenser::Servers::GameServer#handle_response_for_request (method)">#handle_response_for_request</a></span></li>
2335
+
2336
+ <li><span class='object_link'><a href="#rules-instance_method" title="SteamCondenser::Servers::GameServer#rules (method)">#rules</a></span></li>
2337
+
2338
+ </ul>
2339
+
2340
+ </div><table class="source_code">
2341
+ <tr>
2342
+ <td>
2343
+ <pre class="lines">
2344
+
2345
+
2346
+ 305
2347
+ 306
2348
+ 307</pre>
2349
+ </td>
2350
+ <td>
2351
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 305</span>
2352
+
2353
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_update_rules identifier id'>update_rules</span>
2354
+ <span class='rubyid_handle_response_for_request identifier id'>handle_response_for_request</span> <span class='symbol val'>:rules</span>
2355
+ <span class='rubyid_end end kw'>end</span>
2356
+ </pre>
2357
+ </td>
2358
+ </tr>
2359
+ </table>
2360
+ </div>
2361
+
2362
+ <div class="method_details ">
2363
+ <h3 class="signature " id="update_server_info-instance_method">
2364
+
2365
+ - (<tt>Object</tt>) <strong>update_server_info</strong>
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+ </h3><div class="docstring">
2372
+ <div class="discussion">
2373
+ <p>Sends a A2S_INFO request to the server and updates this server&#39;s basic
2374
+ information</p>
2375
+
2376
+ <p>The server information usually only changes on map change and when players
2377
+ join or leave. As the latter changes can be monitored by calling
2378
+ <span class='object_link'><a href="#update_players-instance_method" title="SteamCondenser::Servers::GameServer#update_players (method)">#update_players</a></span>, there&#39;s no need to call this method very often.</p>
2379
+
2380
+
2381
+ </div>
2382
+ </div>
2383
+ <div class="tags">
2384
+
2385
+
2386
+ <p class="tag_title">See Also:</p>
2387
+ <ul class="see">
2388
+
2389
+ <li><span class='object_link'><a href="#handle_response_for_request-instance_method" title="SteamCondenser::Servers::GameServer#handle_response_for_request (method)">#handle_response_for_request</a></span></li>
2390
+
2391
+ <li><span class='object_link'><a href="#server_info-instance_method" title="SteamCondenser::Servers::GameServer#server_info (method)">#server_info</a></span></li>
2392
+
2393
+ </ul>
2394
+
2395
+ </div><table class="source_code">
2396
+ <tr>
2397
+ <td>
2398
+ <pre class="lines">
2399
+
2400
+
2401
+ 318
2402
+ 319
2403
+ 320</pre>
2404
+ </td>
2405
+ <td>
2406
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/servers/game_server.rb', line 318</span>
2407
+
2408
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_update_server_info identifier id'>update_server_info</span>
2409
+ <span class='rubyid_handle_response_for_request identifier id'>handle_response_for_request</span> <span class='symbol val'>:info</span>
2410
+ <span class='rubyid_end end kw'>end</span>
2411
+ </pre>
2412
+ </td>
2413
+ </tr>
2414
+ </table>
2415
+ </div>
2416
+
2417
+ </div>
2418
+
2419
+ </div>
2420
+
2421
+ <div id="footer">
2422
+ Generated on Wed Aug 14 21:47:41 2013 by
2423
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2424
+ 0.8.7 (ruby-1.8.7).
2425
+ </div>
2426
+
2427
+ </body>
2428
+ </html>