steam-condenser 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (371) hide show
  1. data/Gemfile.lock +7 -7
  2. data/README.md +9 -2
  3. data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +426 -0
  4. data/doc/A2S_INFO_Packet.html +260 -0
  5. data/doc/A2S_PLAYER_Packet.html +295 -0
  6. data/doc/A2S_RULES_Packet.html +296 -0
  7. data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
  8. data/doc/AbstractL4DStats.html +978 -0
  9. data/doc/AbstractL4DWeapon.html +734 -0
  10. data/doc/Achievement.html +660 -0
  11. data/doc/AlienSwarmMission.html +1557 -0
  12. data/doc/AlienSwarmStats.html +965 -0
  13. data/doc/AlienSwarmWeapon.html +640 -0
  14. data/doc/AppNews.html +1442 -0
  15. data/doc/C2M_CHECKMD5_Packet.html +341 -0
  16. data/doc/CSSMap.html +806 -0
  17. data/doc/CSSStats.html +825 -0
  18. data/doc/CSSWeapon.html +889 -0
  19. data/doc/Cacheable.html +913 -0
  20. data/doc/Cacheable/ClassMethods.html +696 -0
  21. data/doc/DefenseGridStats.html +2559 -0
  22. data/doc/DoDSClass.html +1264 -0
  23. data/doc/DoDSStats.html +486 -0
  24. data/doc/DoDSWeapon.html +806 -0
  25. data/doc/Dota2BetaInventory.html +339 -0
  26. data/doc/Dota2Inventory.html +339 -0
  27. data/doc/Dota2Item.html +388 -0
  28. data/doc/Dota2Stats.html +366 -0
  29. data/doc/GameAchievement.html +1257 -0
  30. data/doc/GameClass.html +321 -0
  31. data/doc/GameInventory.html +1363 -0
  32. data/doc/GameItem.html +1339 -0
  33. data/doc/GameLeaderboard.html +1609 -0
  34. data/doc/GameLeaderboardEntry.html +629 -0
  35. data/doc/GameSchema.html +568 -0
  36. data/doc/GameServer.html +2405 -0
  37. data/doc/GameStats.html +1461 -0
  38. data/doc/GameWeapon.html +590 -0
  39. data/doc/GoldSrcServer.html +740 -0
  40. data/doc/GoldSrcSocket.html +850 -0
  41. data/doc/ItemSchema.html +780 -0
  42. data/doc/L4D2Map.html +739 -0
  43. data/doc/L4D2Stats.html +930 -0
  44. data/doc/L4D2Weapon.html +486 -0
  45. data/doc/L4DExplosive.html +374 -0
  46. data/doc/L4DMap.html +776 -0
  47. data/doc/L4DStats.html +530 -0
  48. data/doc/L4DWeapon.html +296 -0
  49. data/doc/M2A_SERVER_BATCH_Packet.html +430 -0
  50. data/doc/M2C_ISVALIDMD5_Packet.html +383 -0
  51. data/doc/M2S_REQUESTRESTART_Packet.html +382 -0
  52. data/doc/MasterServer.html +1070 -0
  53. data/doc/MasterServerSocket.html +293 -0
  54. data/doc/Module.html +194 -0
  55. data/doc/PacketFormatError.html +257 -0
  56. data/doc/Portal2Inventory.html +339 -0
  57. data/doc/Portal2Item.html +499 -0
  58. data/doc/Portal2Stats.html +368 -0
  59. data/doc/RCONAuthRequest.html +318 -0
  60. data/doc/RCONAuthResponse.html +305 -0
  61. data/doc/RCONBanError.html +247 -0
  62. data/doc/RCONExecRequest.html +318 -0
  63. data/doc/RCONExecResponse.html +407 -0
  64. data/doc/RCONGoldSrcRequest.html +363 -0
  65. data/doc/RCONGoldSrcResponse.html +367 -0
  66. data/doc/RCONNoAuthError.html +247 -0
  67. data/doc/RCONPacket.html +548 -0
  68. data/doc/RCONPacketFactory.html +300 -0
  69. data/doc/RCONSocket.html +669 -0
  70. data/doc/RCONTerminator.html +304 -0
  71. data/doc/RequestWithChallenge.html +233 -0
  72. data/doc/S2A_INFO2_Packet.html +371 -0
  73. data/doc/S2A_INFO_BasePacket.html +357 -0
  74. data/doc/S2A_INFO_DETAILED_Packet.html +370 -0
  75. data/doc/S2A_LOGSTRING_Packet.html +373 -0
  76. data/doc/S2A_PLAYER_Packet.html +417 -0
  77. data/doc/S2A_RULES_Packet.html +411 -0
  78. data/doc/S2C_CHALLENGE_Packet.html +370 -0
  79. data/doc/S2M_HEARTBEAT2_Packet.html +444 -0
  80. data/doc/Server.html +781 -0
  81. data/doc/SourceServer.html +776 -0
  82. data/doc/SourceSocket.html +366 -0
  83. data/doc/StatsAttribute.html +514 -0
  84. data/doc/SteamCondenser.html +155 -0
  85. data/doc/SteamCondenser/A2M_GET_SERVERS_BATCH2_Packet.html +413 -0
  86. data/doc/SteamCondenser/A2S_INFO_Packet.html +249 -0
  87. data/doc/SteamCondenser/A2S_PLAYER_Packet.html +281 -0
  88. data/doc/SteamCondenser/A2S_RULES_Packet.html +282 -0
  89. data/doc/SteamCondenser/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +250 -0
  90. data/doc/SteamCondenser/AbstractL4DStats.html +954 -0
  91. data/doc/SteamCondenser/AbstractL4DWeapon.html +703 -0
  92. data/doc/SteamCondenser/AlienSwarmMission.html +1494 -0
  93. data/doc/SteamCondenser/AlienSwarmStats.html +938 -0
  94. data/doc/SteamCondenser/AlienSwarmWeapon.html +614 -0
  95. data/doc/SteamCondenser/AppNews.html +1387 -0
  96. data/doc/SteamCondenser/C2M_CHECKMD5_Packet.html +327 -0
  97. data/doc/SteamCondenser/CSSMap.html +774 -0
  98. data/doc/SteamCondenser/CSSStats.html +799 -0
  99. data/doc/SteamCondenser/CSSWeapon.html +855 -0
  100. data/doc/SteamCondenser/Cacheable.html +698 -0
  101. data/doc/SteamCondenser/Cacheable/ClassMethods.html +531 -0
  102. data/doc/SteamCondenser/Community.html +134 -0
  103. data/doc/SteamCondenser/DefenseGridStats.html +2455 -0
  104. data/doc/SteamCondenser/DoDSClass.html +1209 -0
  105. data/doc/SteamCondenser/DoDSStats.html +470 -0
  106. data/doc/SteamCondenser/DoDSWeapon.html +774 -0
  107. data/doc/SteamCondenser/Error.html +156 -0
  108. data/doc/SteamCondenser/Error/PacketFormat.html +246 -0
  109. data/doc/SteamCondenser/Error/RCONBan.html +237 -0
  110. data/doc/SteamCondenser/Error/RCONNoAuth.html +236 -0
  111. data/doc/SteamCondenser/Error/Timeout.html +238 -0
  112. data/doc/SteamCondenser/Error/WebApi.html +339 -0
  113. data/doc/SteamCondenser/GameAchievement.html +1210 -0
  114. data/doc/SteamCondenser/GameClass.html +306 -0
  115. data/doc/SteamCondenser/GameInventory.html +1236 -0
  116. data/doc/SteamCondenser/GameItem.html +1282 -0
  117. data/doc/SteamCondenser/GameLeaderboard.html +1562 -0
  118. data/doc/SteamCondenser/GameLeaderboardEntry.html +604 -0
  119. data/doc/SteamCondenser/GameServer.html +2337 -0
  120. data/doc/SteamCondenser/GameStats.html +1416 -0
  121. data/doc/SteamCondenser/GameWeapon.html +566 -0
  122. data/doc/SteamCondenser/GoldSrcServer.html +716 -0
  123. data/doc/SteamCondenser/GoldSrcSocket.html +831 -0
  124. data/doc/SteamCondenser/L4D2Map.html +713 -0
  125. data/doc/SteamCondenser/L4D2Stats.html +906 -0
  126. data/doc/SteamCondenser/L4D2Weapon.html +466 -0
  127. data/doc/SteamCondenser/L4DExplosive.html +362 -0
  128. data/doc/SteamCondenser/L4DMap.html +746 -0
  129. data/doc/SteamCondenser/L4DStats.html +513 -0
  130. data/doc/SteamCondenser/L4DWeapon.html +284 -0
  131. data/doc/SteamCondenser/M2A_SERVER_BATCH_Packet.html +415 -0
  132. data/doc/SteamCondenser/M2C_ISVALIDMD5_Packet.html +368 -0
  133. data/doc/SteamCondenser/M2S_REQUESTRESTART_Packet.html +367 -0
  134. data/doc/SteamCondenser/MasterServer.html +1046 -0
  135. data/doc/SteamCondenser/MasterServerSocket.html +282 -0
  136. data/doc/SteamCondenser/Portal2Inventory.html +217 -0
  137. data/doc/SteamCondenser/Portal2Item.html +483 -0
  138. data/doc/SteamCondenser/Portal2Stats.html +353 -0
  139. data/doc/SteamCondenser/RCONAuthRequest.html +306 -0
  140. data/doc/SteamCondenser/RCONAuthResponse.html +293 -0
  141. data/doc/SteamCondenser/RCONExecRequest.html +306 -0
  142. data/doc/SteamCondenser/RCONExecResponse.html +392 -0
  143. data/doc/SteamCondenser/RCONGoldSrcRequest.html +349 -0
  144. data/doc/SteamCondenser/RCONGoldSrcResponse.html +354 -0
  145. data/doc/SteamCondenser/RCONPacket.html +530 -0
  146. data/doc/SteamCondenser/RCONPacketFactory.html +293 -0
  147. data/doc/SteamCondenser/RCONSocket.html +649 -0
  148. data/doc/SteamCondenser/RCONTerminator.html +292 -0
  149. data/doc/SteamCondenser/RequestWithChallenge.html +223 -0
  150. data/doc/SteamCondenser/S2A_INFO2_Packet.html +359 -0
  151. data/doc/SteamCondenser/S2A_INFO_BasePacket.html +342 -0
  152. data/doc/SteamCondenser/S2A_INFO_DETAILED_Packet.html +358 -0
  153. data/doc/SteamCondenser/S2A_LOGSTRING_Packet.html +358 -0
  154. data/doc/SteamCondenser/S2A_PLAYER_Packet.html +402 -0
  155. data/doc/SteamCondenser/S2A_RULES_Packet.html +396 -0
  156. data/doc/SteamCondenser/S2C_CHALLENGE_Packet.html +356 -0
  157. data/doc/SteamCondenser/S2M_HEARTBEAT2_Packet.html +430 -0
  158. data/doc/SteamCondenser/Server.html +754 -0
  159. data/doc/SteamCondenser/Servers.html +133 -0
  160. data/doc/SteamCondenser/SourceServer.html +752 -0
  161. data/doc/SteamCondenser/SourceSocket.html +355 -0
  162. data/doc/SteamCondenser/SteamGame.html +1802 -0
  163. data/doc/SteamCondenser/SteamGroup.html +969 -0
  164. data/doc/SteamCondenser/SteamId.html +4242 -0
  165. data/doc/SteamCondenser/SteamPacket.html +456 -0
  166. data/doc/SteamCondenser/SteamPacketFactory.html +521 -0
  167. data/doc/SteamCondenser/SteamPlayer.html +1696 -0
  168. data/doc/SteamCondenser/SteamSocket.html +679 -0
  169. data/doc/SteamCondenser/TF2BetaInventory.html +198 -0
  170. data/doc/SteamCondenser/TF2Class.html +1145 -0
  171. data/doc/SteamCondenser/TF2ClassFactory.html +263 -0
  172. data/doc/SteamCondenser/TF2Engineer.html +534 -0
  173. data/doc/SteamCondenser/TF2GoldenWrench.html +731 -0
  174. data/doc/SteamCondenser/TF2Inventory.html +217 -0
  175. data/doc/SteamCondenser/TF2Item.html +482 -0
  176. data/doc/SteamCondenser/TF2Medic.html +445 -0
  177. data/doc/SteamCondenser/TF2Sniper.html +357 -0
  178. data/doc/SteamCondenser/TF2Spy.html +531 -0
  179. data/doc/SteamCondenser/TF2Stats.html +670 -0
  180. data/doc/SteamCondenser/TimeoutError.html +249 -0
  181. data/doc/SteamCondenser/WebApi.html +999 -0
  182. data/doc/SteamCondenser/XMLData.html +171 -0
  183. data/doc/SteamCondenserError.html +153 -0
  184. data/doc/SteamGame.html +1859 -0
  185. data/doc/SteamGroup.html +1012 -0
  186. data/doc/SteamId.html +4369 -0
  187. data/doc/SteamPacket.html +469 -0
  188. data/doc/SteamPacketFactory.html +545 -0
  189. data/doc/SteamPlayer.html +1766 -0
  190. data/doc/SteamSocket.html +699 -0
  191. data/doc/StringIO.html +947 -0
  192. data/doc/TF2BetaInventory.html +315 -0
  193. data/doc/TF2Class.html +1194 -0
  194. data/doc/TF2ClassFactory.html +273 -0
  195. data/doc/TF2Engineer.html +558 -0
  196. data/doc/TF2GoldenWrench.html +760 -0
  197. data/doc/TF2Inventory.html +339 -0
  198. data/doc/TF2Item.html +499 -0
  199. data/doc/TF2Medic.html +465 -0
  200. data/doc/TF2Sniper.html +373 -0
  201. data/doc/TF2Spy.html +555 -0
  202. data/doc/TF2Stats.html +696 -0
  203. data/doc/WebApi.html +1021 -0
  204. data/doc/WebApiError.html +347 -0
  205. data/doc/XMLData.html +253 -0
  206. data/doc/_index.html +717 -0
  207. data/doc/class_list.html +53 -0
  208. data/doc/css/common.css +1 -0
  209. data/doc/css/full_list.css +57 -0
  210. data/doc/css/style.css +328 -0
  211. data/doc/file.LICENSE.html +100 -0
  212. data/doc/file.README.html +136 -0
  213. data/doc/file_list.html +58 -0
  214. data/doc/frames.html +28 -0
  215. data/doc/index.html +136 -0
  216. data/doc/js/app.js +214 -0
  217. data/doc/js/full_list.js +173 -0
  218. data/doc/js/jquery.js +4 -0
  219. data/doc/method_list.html +3988 -0
  220. data/doc/methods_list.html +3900 -0
  221. data/doc/top-level-namespace.html +114 -0
  222. data/lib/steam-condenser/version.rb +1 -1
  223. data/lib/steam/community/cacheable.rb +105 -44
  224. data/lib/steam/community/dota2/dota2_beta_inventory.rb +27 -0
  225. data/lib/steam/community/dota2/dota2_inventory.rb +27 -0
  226. data/lib/steam/community/dota2/dota2_item.rb +33 -0
  227. data/lib/steam/community/game_inventory.rb +18 -16
  228. data/lib/steam/community/game_leaderboard.rb +2 -2
  229. data/lib/steam/community/game_stats.rb +1 -1
  230. data/lib/steam/community/portal2/portal2_inventory.rb +11 -9
  231. data/lib/steam/community/steam_game.rb +0 -2
  232. data/lib/steam/community/steam_group.rb +2 -7
  233. data/lib/steam/community/steam_id.rb +2 -7
  234. data/lib/steam/community/tf2/tf2_beta_inventory.rb +11 -8
  235. data/lib/steam/community/tf2/tf2_inventory.rb +11 -9
  236. data/lib/steam/community/xml_data.rb +8 -1
  237. data/lib/steam/packets/a2s_player_packet.rb +1 -1
  238. data/lib/steam/packets/a2s_rules_packet.rb +1 -1
  239. data/lib/steam/servers/master_server.rb +3 -2
  240. data/lib/steam/sockets/rcon_socket.rb +1 -2
  241. data/pkg/steam-condenser-1.2.0.gem +0 -0
  242. data/pkg/steam-condenser-1.2.0/Gemfile +3 -0
  243. data/pkg/steam-condenser-1.2.0/Gemfile.lock +30 -0
  244. data/pkg/steam-condenser-1.2.0/LICENSE +25 -0
  245. data/pkg/steam-condenser-1.2.0/README.md +47 -0
  246. data/pkg/steam-condenser-1.2.0/Rakefile +46 -0
  247. data/pkg/steam-condenser-1.2.0/lib/core_ext/stringio.rb +91 -0
  248. data/pkg/steam-condenser-1.2.0/lib/errors/packet_format_error.rb +21 -0
  249. data/pkg/steam-condenser-1.2.0/lib/errors/rcon_ban_error.rb +22 -0
  250. data/pkg/steam-condenser-1.2.0/lib/errors/rcon_no_auth_error.rb +21 -0
  251. data/pkg/steam-condenser-1.2.0/lib/errors/steam_condenser_error.rb +11 -0
  252. data/pkg/steam-condenser-1.2.0/lib/errors/timeout_error.rb +28 -0
  253. data/pkg/steam-condenser-1.2.0/lib/errors/web_api_error.rb +57 -0
  254. data/pkg/steam-condenser-1.2.0/lib/steam-condenser.rb +18 -0
  255. data/pkg/steam-condenser-1.2.0/lib/steam-condenser/community.rb +24 -0
  256. data/pkg/steam-condenser-1.2.0/lib/steam-condenser/servers.rb +24 -0
  257. data/pkg/steam-condenser-1.2.0/lib/steam-condenser/version.rb +11 -0
  258. data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
  259. data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_stats.rb +179 -0
  260. data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
  261. data/pkg/steam-condenser-1.2.0/lib/steam/community/app_news.rb +133 -0
  262. data/pkg/steam-condenser-1.2.0/lib/steam/community/cacheable.rb +137 -0
  263. data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_map.rb +61 -0
  264. data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_stats.rb +136 -0
  265. data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_weapon.rb +69 -0
  266. data/pkg/steam-condenser-1.2.0/lib/steam/community/defense_grid/defense_grid_stats.rb +237 -0
  267. data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_class.rb +90 -0
  268. data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_stats.rb +61 -0
  269. data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_weapon.rb +67 -0
  270. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_achievement.rb +109 -0
  271. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_class.rb +22 -0
  272. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_inventory.rb +152 -0
  273. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_item.rb +99 -0
  274. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard.rb +201 -0
  275. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard_entry.rb +43 -0
  276. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_stats.rb +175 -0
  277. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_weapon.rb +41 -0
  278. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_stats.rb +173 -0
  279. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
  280. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_map.rb +90 -0
  281. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_stats.rb +165 -0
  282. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
  283. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_explosive.rb +34 -0
  284. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_map.rb +65 -0
  285. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_stats.rb +71 -0
  286. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_weapon.rb +26 -0
  287. data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_inventory.rb +25 -0
  288. data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_item.rb +47 -0
  289. data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_stats.rb +32 -0
  290. data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_game.rb +182 -0
  291. data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_group.rb +135 -0
  292. data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_id.rb +513 -0
  293. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_beta_inventory.rb +22 -0
  294. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class.rb +92 -0
  295. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
  296. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_engineer.rb +43 -0
  297. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
  298. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_inventory.rb +25 -0
  299. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_item.rb +47 -0
  300. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_medic.rb +35 -0
  301. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_sniper.rb +28 -0
  302. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_spy.rb +41 -0
  303. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_stats.rb +76 -0
  304. data/pkg/steam-condenser-1.2.0/lib/steam/community/web_api.rb +129 -0
  305. data/pkg/steam-condenser-1.2.0/lib/steam/community/xml_data.rb +17 -0
  306. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
  307. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_info_packet.rb +24 -0
  308. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_player_packet.rb +31 -0
  309. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_rules_packet.rb +32 -0
  310. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
  311. data/pkg/steam-condenser-1.2.0/lib/steam/packets/c2m_checkmd5_packet.rb +30 -0
  312. data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
  313. data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
  314. data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
  315. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
  316. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
  317. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
  318. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
  319. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
  320. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
  321. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet.rb +57 -0
  322. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
  323. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
  324. data/pkg/steam-condenser-1.2.0/lib/steam/packets/request_with_challenge.rb +19 -0
  325. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info2_packet.rb +62 -0
  326. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_base_packet.rb +35 -0
  327. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_detailed_packet.rb +61 -0
  328. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_logstring_packet.rb +30 -0
  329. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_player_packet.rb +44 -0
  330. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_rules_packet.rb +48 -0
  331. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2c_challenge_packet.rb +35 -0
  332. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2m_heartbeat2_packet.rb +71 -0
  333. data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet.rb +52 -0
  334. data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet_factory.rb +108 -0
  335. data/pkg/steam-condenser-1.2.0/lib/steam/servers/game_server.rb +392 -0
  336. data/pkg/steam-condenser-1.2.0/lib/steam/servers/goldsrc_server.rb +74 -0
  337. data/pkg/steam-condenser-1.2.0/lib/steam/servers/master_server.rb +182 -0
  338. data/pkg/steam-condenser-1.2.0/lib/steam/servers/server.rb +104 -0
  339. data/pkg/steam-condenser-1.2.0/lib/steam/servers/source_server.rb +98 -0
  340. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/goldsrc_socket.rb +142 -0
  341. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/master_server_socket.rb +30 -0
  342. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/rcon_socket.rb +94 -0
  343. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/source_socket.rb +78 -0
  344. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/steam_socket.rb +86 -0
  345. data/pkg/steam-condenser-1.2.0/lib/steam/steam_player.rb +143 -0
  346. data/pkg/steam-condenser-1.2.0/steam-condenser.gemspec +25 -0
  347. data/pkg/steam-condenser-1.2.0/test/core_ext/test_stringio.rb +59 -0
  348. data/pkg/steam-condenser-1.2.0/test/fixtures/invalid.xml +2 -0
  349. data/pkg/steam-condenser-1.2.0/test/fixtures/sonofthor.xml +882 -0
  350. data/pkg/steam-condenser-1.2.0/test/fixtures/status_goldsrc +3 -0
  351. data/pkg/steam-condenser-1.2.0/test/fixtures/status_source +3 -0
  352. data/pkg/steam-condenser-1.2.0/test/fixtures/valve-members.xml +231 -0
  353. data/pkg/steam-condenser-1.2.0/test/helper.rb +45 -0
  354. data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_group.rb +83 -0
  355. data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_id.rb +111 -0
  356. data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_web_api.rb +98 -0
  357. data/pkg/steam-condenser-1.2.0/test/steam/packets/test_steam_packet.rb +37 -0
  358. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_game_server.rb +296 -0
  359. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_goldsrc_server.rb +59 -0
  360. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_master_server.rb +131 -0
  361. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_server.rb +72 -0
  362. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_source_server.rb +126 -0
  363. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_goldsrc_socket.rb +127 -0
  364. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_master_server_socket.rb +42 -0
  365. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_rcon_socket.rb +109 -0
  366. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_source_socket.rb +77 -0
  367. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_steam_socket.rb +97 -0
  368. data/steam-condenser.gemspec +3 -3
  369. data/test/steam/communtiy/test_cacheable.rb +100 -0
  370. data/test/steam/servers/test_master_server.rb +3 -3
  371. metadata +366 -15
@@ -0,0 +1,1696 @@
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
+ Class: SteamCondenser::SteamPlayer
8
+
9
+ &mdash; Steam Condenser – Ruby API
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (S)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../SteamCondenser.html" title="SteamCondenser (module)">SteamCondenser</a></span></span>
38
+ &raquo;
39
+ <span class="title">SteamPlayer</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: SteamCondenser::SteamPlayer
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">SteamCondenser::SteamPlayer</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/steam/steam_player.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+ <p>The SteamPlayer class represents a player connected to a server</p>
98
+
99
+
100
+ </div>
101
+ </div>
102
+ <div class="tags">
103
+
104
+ <h3>Author:</h3>
105
+ <ul class="author">
106
+
107
+ <li>
108
+
109
+
110
+
111
+
112
+
113
+ <div class='inline'><p>Sebastian Staudt</p>
114
+ </div>
115
+
116
+ </li>
117
+
118
+ </ul>
119
+
120
+ </div>
121
+
122
+
123
+
124
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
125
+ <ul class="summary">
126
+
127
+ <li class="public ">
128
+ <span class="summary_signature">
129
+
130
+ <a href="#client_port-instance_method" title="#client_port (instance method)">- (Fixnum) <strong>client_port</strong> </a>
131
+
132
+
133
+
134
+ </span>
135
+
136
+
137
+ <span class="note title readonly">readonly</span>
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ <span class="summary_desc"><div class='inline'><p>Returns the client port of this player.</p>
147
+ </div></span>
148
+
149
+ </li>
150
+
151
+
152
+ <li class="public ">
153
+ <span class="summary_signature">
154
+
155
+ <a href="#connect_time-instance_method" title="#connect_time (instance method)">- (Float) <strong>connect_time</strong> </a>
156
+
157
+
158
+
159
+ </span>
160
+
161
+
162
+ <span class="note title readonly">readonly</span>
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <span class="summary_desc"><div class='inline'><p>Returns the time this player is connected to the server.</p>
172
+ </div></span>
173
+
174
+ </li>
175
+
176
+
177
+ <li class="public ">
178
+ <span class="summary_signature">
179
+
180
+ <a href="#id-instance_method" title="#id (instance method)">- (Fixnum) <strong>id</strong> </a>
181
+
182
+
183
+
184
+ </span>
185
+
186
+
187
+ <span class="note title readonly">readonly</span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+ <span class="summary_desc"><div class='inline'><p>Returns the ID of this player.</p>
197
+ </div></span>
198
+
199
+ </li>
200
+
201
+
202
+ <li class="public ">
203
+ <span class="summary_signature">
204
+
205
+ <a href="#ip_address-instance_method" title="#ip_address (instance method)">- (String) <strong>ip_address</strong> </a>
206
+
207
+
208
+
209
+ </span>
210
+
211
+
212
+ <span class="note title readonly">readonly</span>
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+ <span class="summary_desc"><div class='inline'><p>Returns the IP address of this player.</p>
222
+ </div></span>
223
+
224
+ </li>
225
+
226
+
227
+ <li class="public ">
228
+ <span class="summary_signature">
229
+
230
+ <a href="#loss-instance_method" title="#loss (instance method)">- (String) <strong>loss</strong> </a>
231
+
232
+
233
+
234
+ </span>
235
+
236
+
237
+ <span class="note title readonly">readonly</span>
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+ <span class="summary_desc"><div class='inline'><p>Returns the packet loss of this player&#39;s connection.</p>
247
+ </div></span>
248
+
249
+ </li>
250
+
251
+
252
+ <li class="public ">
253
+ <span class="summary_signature">
254
+
255
+ <a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
256
+
257
+
258
+
259
+ </span>
260
+
261
+
262
+ <span class="note title readonly">readonly</span>
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+ <span class="summary_desc"><div class='inline'><p>Returns the nickname of this player.</p>
272
+ </div></span>
273
+
274
+ </li>
275
+
276
+
277
+ <li class="public ">
278
+ <span class="summary_signature">
279
+
280
+ <a href="#ping-instance_method" title="#ping (instance method)">- (Fixnum) <strong>ping</strong> </a>
281
+
282
+
283
+
284
+ </span>
285
+
286
+
287
+ <span class="note title readonly">readonly</span>
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+ <span class="summary_desc"><div class='inline'><p>Returns the ping of this player.</p>
297
+ </div></span>
298
+
299
+ </li>
300
+
301
+
302
+ <li class="public ">
303
+ <span class="summary_signature">
304
+
305
+ <a href="#rate-instance_method" title="#rate (instance method)">- (Fixnum) <strong>rate</strong> </a>
306
+
307
+
308
+
309
+ </span>
310
+
311
+
312
+ <span class="note title readonly">readonly</span>
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+ <span class="summary_desc"><div class='inline'><p>Returns the rate of this player.</p>
322
+ </div></span>
323
+
324
+ </li>
325
+
326
+
327
+ <li class="public ">
328
+ <span class="summary_signature">
329
+
330
+ <a href="#real_id-instance_method" title="#real_id (instance method)">- (Fixnum) <strong>real_id</strong> </a>
331
+
332
+
333
+
334
+ </span>
335
+
336
+
337
+ <span class="note title readonly">readonly</span>
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+ <span class="summary_desc"><div class='inline'><p>Returns the real ID (as used on the server) of this player.</p>
347
+ </div></span>
348
+
349
+ </li>
350
+
351
+
352
+ <li class="public ">
353
+ <span class="summary_signature">
354
+
355
+ <a href="#score-instance_method" title="#score (instance method)">- (Fixnum) <strong>score</strong> </a>
356
+
357
+
358
+
359
+ </span>
360
+
361
+
362
+ <span class="note title readonly">readonly</span>
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+ <span class="summary_desc"><div class='inline'><p>Returns the score of this player.</p>
372
+ </div></span>
373
+
374
+ </li>
375
+
376
+
377
+ <li class="public ">
378
+ <span class="summary_signature">
379
+
380
+ <a href="#state-instance_method" title="#state (instance method)">- (String) <strong>state</strong> </a>
381
+
382
+
383
+
384
+ </span>
385
+
386
+
387
+ <span class="note title readonly">readonly</span>
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+ <span class="summary_desc"><div class='inline'><p>Returns the connection state of this player.</p>
397
+ </div></span>
398
+
399
+ </li>
400
+
401
+
402
+ <li class="public ">
403
+ <span class="summary_signature">
404
+
405
+ <a href="#steam_id-instance_method" title="#steam_id (instance method)">- (String) <strong>steam_id</strong> </a>
406
+
407
+
408
+
409
+ </span>
410
+
411
+
412
+ <span class="note title readonly">readonly</span>
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+ <span class="summary_desc"><div class='inline'><p>Returns the SteamID of this player.</p>
422
+ </div></span>
423
+
424
+ </li>
425
+
426
+
427
+ </ul>
428
+
429
+
430
+
431
+
432
+
433
+ <h2>
434
+ Instance Method Summary
435
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
436
+ </h2>
437
+
438
+ <ul class="summary">
439
+
440
+ <li class="public ">
441
+ <span class="summary_signature">
442
+
443
+ <a href="#add_info-instance_method" title="#add_info (instance method)">- (Object) <strong>add_info</strong>(player_data) </a>
444
+
445
+
446
+
447
+ </span>
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+ <span class="summary_desc"><div class='inline'><p>Extends a player object with information retrieved from a RCON call to
457
+ the status command.</p>
458
+ </div></span>
459
+
460
+ </li>
461
+
462
+
463
+ <li class="public ">
464
+ <span class="summary_signature">
465
+
466
+ <a href="#bot%3F-instance_method" title="#bot? (instance method)">- (Boolean) <strong>bot?</strong> </a>
467
+
468
+
469
+
470
+ </span>
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <span class="summary_desc"><div class='inline'><p>Returns whether this player is a bot.</p>
480
+ </div></span>
481
+
482
+ </li>
483
+
484
+
485
+ <li class="public ">
486
+ <span class="summary_signature">
487
+
488
+ <a href="#extended%3F-instance_method" title="#extended? (instance method)">- (Boolean) <strong>extended?</strong> </a>
489
+
490
+
491
+
492
+ </span>
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+ <span class="summary_desc"><div class='inline'><p>Returns whether this player object has extended information gathered
502
+ using RCON.</p>
503
+ </div></span>
504
+
505
+ </li>
506
+
507
+
508
+ <li class="public ">
509
+ <span class="summary_signature">
510
+
511
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (SteamPlayer) <strong>initialize</strong>(id, name, score, connect_time) </a>
512
+
513
+
514
+
515
+ </span>
516
+
517
+ <span class="note title constructor">constructor</span>
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+ <span class="summary_desc"><div class='inline'><p>Creates a new player instance with the given information.</p>
527
+ </div></span>
528
+
529
+ </li>
530
+
531
+
532
+ <li class="public ">
533
+ <span class="summary_signature">
534
+
535
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong> </a>
536
+
537
+
538
+
539
+ </span>
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+ <span class="summary_desc"><div class='inline'><p>Returns a string representation of this player.</p>
549
+ </div></span>
550
+
551
+ </li>
552
+
553
+
554
+ </ul>
555
+
556
+
557
+ <div id="constructor_details" class="method_details_list">
558
+ <h2>Constructor Details</h2>
559
+
560
+ <div class="method_details first">
561
+ <p class="signature first" id="initialize-instance_method">
562
+
563
+ - (<tt><span class='object_link'><a href="" title="SteamCondenser::SteamPlayer (class)">SteamPlayer</a></span></tt>) <strong>initialize</strong>(id, name, score, connect_time)
564
+
565
+
566
+
567
+ </p><div class="docstring">
568
+ <div class="discussion">
569
+ <p>Creates a new player instance with the given information</p>
570
+
571
+
572
+ </div>
573
+ </div>
574
+ <div class="tags">
575
+ <h3>Parameters:</h3>
576
+ <ul class="param">
577
+
578
+ <li>
579
+
580
+ <span class='name'>id</span>
581
+
582
+
583
+ <span class='type'>(<tt>Fixnum</tt>)</span>
584
+
585
+
586
+
587
+ &mdash;
588
+ <div class='inline'><p>The ID of the player on the server</p>
589
+ </div>
590
+
591
+ </li>
592
+
593
+ <li>
594
+
595
+ <span class='name'>name</span>
596
+
597
+
598
+ <span class='type'>(<tt>String</tt>)</span>
599
+
600
+
601
+
602
+ &mdash;
603
+ <div class='inline'><p>The name of the player</p>
604
+ </div>
605
+
606
+ </li>
607
+
608
+ <li>
609
+
610
+ <span class='name'>score</span>
611
+
612
+
613
+ <span class='type'>(<tt>Fixnum</tt>)</span>
614
+
615
+
616
+
617
+ &mdash;
618
+ <div class='inline'><p>The score of the player</p>
619
+ </div>
620
+
621
+ </li>
622
+
623
+ <li>
624
+
625
+ <span class='name'>connect_time</span>
626
+
627
+
628
+ <span class='type'>(<tt>Float</tt>)</span>
629
+
630
+
631
+
632
+ &mdash;
633
+ <div class='inline'><p>The time the player is connected to the
634
+ server</p>
635
+ </div>
636
+
637
+ </li>
638
+
639
+ </ul>
640
+
641
+
642
+ </div><table class="source_code">
643
+ <tr>
644
+ <td>
645
+ <pre class="lines">
646
+
647
+
648
+ 82
649
+ 83
650
+ 84
651
+ 85
652
+ 86
653
+ 87
654
+ 88</pre>
655
+ </td>
656
+ <td>
657
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 82</span>
658
+
659
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_id identifier id'>id</span><span class='comma token'>,</span> <span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_score identifier id'>score</span><span class='comma token'>,</span> <span class='rubyid_connect_time identifier id'>connect_time</span><span class='rparen token'>)</span>
660
+ <span class='rubyid_@connect_time ivar id'>@connect_time</span> <span class='assign token'>=</span> <span class='rubyid_connect_time identifier id'>connect_time</span>
661
+ <span class='rubyid_@id ivar id'>@id</span> <span class='assign token'>=</span> <span class='rubyid_id identifier id'>id</span>
662
+ <span class='rubyid_@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='rubyid_name identifier id'>name</span>
663
+ <span class='rubyid_@score ivar id'>@score</span> <span class='assign token'>=</span> <span class='rubyid_score identifier id'>score</span>
664
+ <span class='rubyid_@extended ivar id'>@extended</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span>
665
+ <span class='rubyid_end end kw'>end</span>
666
+ </pre>
667
+ </td>
668
+ </tr>
669
+ </table>
670
+ </div>
671
+
672
+ </div>
673
+
674
+ <div id="instance_attr_details" class="attr_details">
675
+ <h2>Instance Attribute Details</h2>
676
+
677
+
678
+ <span id=""></span>
679
+ <span id="client_port-instance_method"></span>
680
+ <div class="method_details first">
681
+ <p class="signature first" id="client_port-instance_method">
682
+
683
+ - (<tt>Fixnum</tt>) <strong>client_port</strong> <span class="extras">(readonly)</span>
684
+
685
+
686
+
687
+ </p><div class="docstring">
688
+ <div class="discussion">
689
+ <p>Returns the client port of this player</p>
690
+
691
+
692
+ </div>
693
+ </div>
694
+ <div class="tags">
695
+
696
+ <h3>Returns:</h3>
697
+ <ul class="return">
698
+
699
+ <li>
700
+
701
+
702
+ <span class='type'>(<tt>Fixnum</tt>)</span>
703
+
704
+
705
+
706
+ &mdash;
707
+ <div class='inline'><p>The client port of the player</p>
708
+ </div>
709
+
710
+ </li>
711
+
712
+ </ul>
713
+
714
+ </div><table class="source_code">
715
+ <tr>
716
+ <td>
717
+ <pre class="lines">
718
+
719
+
720
+ 18
721
+ 19
722
+ 20</pre>
723
+ </td>
724
+ <td>
725
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 18</span>
726
+
727
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_client_port identifier id'>client_port</span>
728
+ <span class='rubyid_@client_port ivar id'>@client_port</span>
729
+ <span class='rubyid_end end kw'>end</span>
730
+ </pre>
731
+ </td>
732
+ </tr>
733
+ </table>
734
+ </div>
735
+
736
+
737
+ <span id=""></span>
738
+ <span id="connect_time-instance_method"></span>
739
+ <div class="method_details ">
740
+ <p class="signature " id="connect_time-instance_method">
741
+
742
+ - (<tt>Float</tt>) <strong>connect_time</strong> <span class="extras">(readonly)</span>
743
+
744
+
745
+
746
+ </p><div class="docstring">
747
+ <div class="discussion">
748
+ <p>Returns the time this player is connected to the server</p>
749
+
750
+
751
+ </div>
752
+ </div>
753
+ <div class="tags">
754
+
755
+ <h3>Returns:</h3>
756
+ <ul class="return">
757
+
758
+ <li>
759
+
760
+
761
+ <span class='type'>(<tt>Float</tt>)</span>
762
+
763
+
764
+
765
+ &mdash;
766
+ <div class='inline'><p>The connection time of the player</p>
767
+ </div>
768
+
769
+ </li>
770
+
771
+ </ul>
772
+
773
+ </div><table class="source_code">
774
+ <tr>
775
+ <td>
776
+ <pre class="lines">
777
+
778
+
779
+ 23
780
+ 24
781
+ 25</pre>
782
+ </td>
783
+ <td>
784
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 23</span>
785
+
786
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_connect_time identifier id'>connect_time</span>
787
+ <span class='rubyid_@connect_time ivar id'>@connect_time</span>
788
+ <span class='rubyid_end end kw'>end</span>
789
+ </pre>
790
+ </td>
791
+ </tr>
792
+ </table>
793
+ </div>
794
+
795
+
796
+ <span id=""></span>
797
+ <span id="id-instance_method"></span>
798
+ <div class="method_details ">
799
+ <p class="signature " id="id-instance_method">
800
+
801
+ - (<tt>Fixnum</tt>) <strong>id</strong> <span class="extras">(readonly)</span>
802
+
803
+
804
+
805
+ </p><div class="docstring">
806
+ <div class="discussion">
807
+ <p>Returns the ID of this player</p>
808
+
809
+
810
+ </div>
811
+ </div>
812
+ <div class="tags">
813
+
814
+ <h3>Returns:</h3>
815
+ <ul class="return">
816
+
817
+ <li>
818
+
819
+
820
+ <span class='type'>(<tt>Fixnum</tt>)</span>
821
+
822
+
823
+
824
+ &mdash;
825
+ <div class='inline'><p>The ID of this player</p>
826
+ </div>
827
+
828
+ </li>
829
+
830
+ </ul>
831
+
832
+ </div><table class="source_code">
833
+ <tr>
834
+ <td>
835
+ <pre class="lines">
836
+
837
+
838
+ 28
839
+ 29
840
+ 30</pre>
841
+ </td>
842
+ <td>
843
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 28</span>
844
+
845
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_id identifier id'>id</span>
846
+ <span class='rubyid_@id ivar id'>@id</span>
847
+ <span class='rubyid_end end kw'>end</span>
848
+ </pre>
849
+ </td>
850
+ </tr>
851
+ </table>
852
+ </div>
853
+
854
+
855
+ <span id=""></span>
856
+ <span id="ip_address-instance_method"></span>
857
+ <div class="method_details ">
858
+ <p class="signature " id="ip_address-instance_method">
859
+
860
+ - (<tt>String</tt>) <strong>ip_address</strong> <span class="extras">(readonly)</span>
861
+
862
+
863
+
864
+ </p><div class="docstring">
865
+ <div class="discussion">
866
+ <p>Returns the IP address of this player</p>
867
+
868
+
869
+ </div>
870
+ </div>
871
+ <div class="tags">
872
+
873
+ <h3>Returns:</h3>
874
+ <ul class="return">
875
+
876
+ <li>
877
+
878
+
879
+ <span class='type'>(<tt>String</tt>)</span>
880
+
881
+
882
+
883
+ &mdash;
884
+ <div class='inline'><p>The IP address of this player</p>
885
+ </div>
886
+
887
+ </li>
888
+
889
+ </ul>
890
+
891
+ </div><table class="source_code">
892
+ <tr>
893
+ <td>
894
+ <pre class="lines">
895
+
896
+
897
+ 33
898
+ 34
899
+ 35</pre>
900
+ </td>
901
+ <td>
902
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 33</span>
903
+
904
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_ip_address identifier id'>ip_address</span>
905
+ <span class='rubyid_@ip_address ivar id'>@ip_address</span>
906
+ <span class='rubyid_end end kw'>end</span>
907
+ </pre>
908
+ </td>
909
+ </tr>
910
+ </table>
911
+ </div>
912
+
913
+
914
+ <span id=""></span>
915
+ <span id="loss-instance_method"></span>
916
+ <div class="method_details ">
917
+ <p class="signature " id="loss-instance_method">
918
+
919
+ - (<tt>String</tt>) <strong>loss</strong> <span class="extras">(readonly)</span>
920
+
921
+
922
+
923
+ </p><div class="docstring">
924
+ <div class="discussion">
925
+ <p>Returns the packet loss of this player&#39;s connection</p>
926
+
927
+
928
+ </div>
929
+ </div>
930
+ <div class="tags">
931
+
932
+ <h3>Returns:</h3>
933
+ <ul class="return">
934
+
935
+ <li>
936
+
937
+
938
+ <span class='type'>(<tt>String</tt>)</span>
939
+
940
+
941
+
942
+ &mdash;
943
+ <div class='inline'><p>The packet loss of this player&#39;s connection</p>
944
+ </div>
945
+
946
+ </li>
947
+
948
+ </ul>
949
+
950
+ </div><table class="source_code">
951
+ <tr>
952
+ <td>
953
+ <pre class="lines">
954
+
955
+
956
+ 43
957
+ 44
958
+ 45</pre>
959
+ </td>
960
+ <td>
961
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 43</span>
962
+
963
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_loss identifier id'>loss</span>
964
+ <span class='rubyid_@loss ivar id'>@loss</span>
965
+ <span class='rubyid_end end kw'>end</span>
966
+ </pre>
967
+ </td>
968
+ </tr>
969
+ </table>
970
+ </div>
971
+
972
+
973
+ <span id=""></span>
974
+ <span id="name-instance_method"></span>
975
+ <div class="method_details ">
976
+ <p class="signature " id="name-instance_method">
977
+
978
+ - (<tt>String</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
979
+
980
+
981
+
982
+ </p><div class="docstring">
983
+ <div class="discussion">
984
+ <p>Returns the nickname of this player</p>
985
+
986
+
987
+ </div>
988
+ </div>
989
+ <div class="tags">
990
+
991
+ <h3>Returns:</h3>
992
+ <ul class="return">
993
+
994
+ <li>
995
+
996
+
997
+ <span class='type'>(<tt>String</tt>)</span>
998
+
999
+
1000
+
1001
+ &mdash;
1002
+ <div class='inline'><p>The name of this player</p>
1003
+ </div>
1004
+
1005
+ </li>
1006
+
1007
+ </ul>
1008
+
1009
+ </div><table class="source_code">
1010
+ <tr>
1011
+ <td>
1012
+ <pre class="lines">
1013
+
1014
+
1015
+ 38
1016
+ 39
1017
+ 40</pre>
1018
+ </td>
1019
+ <td>
1020
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 38</span>
1021
+
1022
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_name identifier id'>name</span>
1023
+ <span class='rubyid_@name ivar id'>@name</span>
1024
+ <span class='rubyid_end end kw'>end</span>
1025
+ </pre>
1026
+ </td>
1027
+ </tr>
1028
+ </table>
1029
+ </div>
1030
+
1031
+
1032
+ <span id=""></span>
1033
+ <span id="ping-instance_method"></span>
1034
+ <div class="method_details ">
1035
+ <p class="signature " id="ping-instance_method">
1036
+
1037
+ - (<tt>Fixnum</tt>) <strong>ping</strong> <span class="extras">(readonly)</span>
1038
+
1039
+
1040
+
1041
+ </p><div class="docstring">
1042
+ <div class="discussion">
1043
+ <p>Returns the ping of this player</p>
1044
+
1045
+
1046
+ </div>
1047
+ </div>
1048
+ <div class="tags">
1049
+
1050
+ <h3>Returns:</h3>
1051
+ <ul class="return">
1052
+
1053
+ <li>
1054
+
1055
+
1056
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1057
+
1058
+
1059
+
1060
+ &mdash;
1061
+ <div class='inline'><p>The ping of this player</p>
1062
+ </div>
1063
+
1064
+ </li>
1065
+
1066
+ </ul>
1067
+
1068
+ </div><table class="source_code">
1069
+ <tr>
1070
+ <td>
1071
+ <pre class="lines">
1072
+
1073
+
1074
+ 48
1075
+ 49
1076
+ 50</pre>
1077
+ </td>
1078
+ <td>
1079
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 48</span>
1080
+
1081
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_ping identifier id'>ping</span>
1082
+ <span class='rubyid_@ping ivar id'>@ping</span>
1083
+ <span class='rubyid_end end kw'>end</span>
1084
+ </pre>
1085
+ </td>
1086
+ </tr>
1087
+ </table>
1088
+ </div>
1089
+
1090
+
1091
+ <span id=""></span>
1092
+ <span id="rate-instance_method"></span>
1093
+ <div class="method_details ">
1094
+ <p class="signature " id="rate-instance_method">
1095
+
1096
+ - (<tt>Fixnum</tt>) <strong>rate</strong> <span class="extras">(readonly)</span>
1097
+
1098
+
1099
+
1100
+ </p><div class="docstring">
1101
+ <div class="discussion">
1102
+ <p>Returns the rate of this player</p>
1103
+
1104
+
1105
+ </div>
1106
+ </div>
1107
+ <div class="tags">
1108
+
1109
+ <h3>Returns:</h3>
1110
+ <ul class="return">
1111
+
1112
+ <li>
1113
+
1114
+
1115
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1116
+
1117
+
1118
+
1119
+ &mdash;
1120
+ <div class='inline'><p>The rate of this player</p>
1121
+ </div>
1122
+
1123
+ </li>
1124
+
1125
+ </ul>
1126
+
1127
+ </div><table class="source_code">
1128
+ <tr>
1129
+ <td>
1130
+ <pre class="lines">
1131
+
1132
+
1133
+ 53
1134
+ 54
1135
+ 55</pre>
1136
+ </td>
1137
+ <td>
1138
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 53</span>
1139
+
1140
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_rate identifier id'>rate</span>
1141
+ <span class='rubyid_@rate ivar id'>@rate</span>
1142
+ <span class='rubyid_end end kw'>end</span>
1143
+ </pre>
1144
+ </td>
1145
+ </tr>
1146
+ </table>
1147
+ </div>
1148
+
1149
+
1150
+ <span id=""></span>
1151
+ <span id="real_id-instance_method"></span>
1152
+ <div class="method_details ">
1153
+ <p class="signature " id="real_id-instance_method">
1154
+
1155
+ - (<tt>Fixnum</tt>) <strong>real_id</strong> <span class="extras">(readonly)</span>
1156
+
1157
+
1158
+
1159
+ </p><div class="docstring">
1160
+ <div class="discussion">
1161
+ <p>Returns the real ID (as used on the server) of this player</p>
1162
+
1163
+
1164
+ </div>
1165
+ </div>
1166
+ <div class="tags">
1167
+
1168
+ <h3>Returns:</h3>
1169
+ <ul class="return">
1170
+
1171
+ <li>
1172
+
1173
+
1174
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1175
+
1176
+
1177
+
1178
+ &mdash;
1179
+ <div class='inline'><p>The real ID of this player</p>
1180
+ </div>
1181
+
1182
+ </li>
1183
+
1184
+ </ul>
1185
+
1186
+ </div><table class="source_code">
1187
+ <tr>
1188
+ <td>
1189
+ <pre class="lines">
1190
+
1191
+
1192
+ 58
1193
+ 59
1194
+ 60</pre>
1195
+ </td>
1196
+ <td>
1197
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 58</span>
1198
+
1199
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_real_id identifier id'>real_id</span>
1200
+ <span class='rubyid_@real_id ivar id'>@real_id</span>
1201
+ <span class='rubyid_end end kw'>end</span>
1202
+ </pre>
1203
+ </td>
1204
+ </tr>
1205
+ </table>
1206
+ </div>
1207
+
1208
+
1209
+ <span id=""></span>
1210
+ <span id="score-instance_method"></span>
1211
+ <div class="method_details ">
1212
+ <p class="signature " id="score-instance_method">
1213
+
1214
+ - (<tt>Fixnum</tt>) <strong>score</strong> <span class="extras">(readonly)</span>
1215
+
1216
+
1217
+
1218
+ </p><div class="docstring">
1219
+ <div class="discussion">
1220
+ <p>Returns the score of this player</p>
1221
+
1222
+
1223
+ </div>
1224
+ </div>
1225
+ <div class="tags">
1226
+
1227
+ <h3>Returns:</h3>
1228
+ <ul class="return">
1229
+
1230
+ <li>
1231
+
1232
+
1233
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1234
+
1235
+
1236
+
1237
+ &mdash;
1238
+ <div class='inline'><p>The score of this player</p>
1239
+ </div>
1240
+
1241
+ </li>
1242
+
1243
+ </ul>
1244
+
1245
+ </div><table class="source_code">
1246
+ <tr>
1247
+ <td>
1248
+ <pre class="lines">
1249
+
1250
+
1251
+ 63
1252
+ 64
1253
+ 65</pre>
1254
+ </td>
1255
+ <td>
1256
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 63</span>
1257
+
1258
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_score identifier id'>score</span>
1259
+ <span class='rubyid_@score ivar id'>@score</span>
1260
+ <span class='rubyid_end end kw'>end</span>
1261
+ </pre>
1262
+ </td>
1263
+ </tr>
1264
+ </table>
1265
+ </div>
1266
+
1267
+
1268
+ <span id=""></span>
1269
+ <span id="state-instance_method"></span>
1270
+ <div class="method_details ">
1271
+ <p class="signature " id="state-instance_method">
1272
+
1273
+ - (<tt>String</tt>) <strong>state</strong> <span class="extras">(readonly)</span>
1274
+
1275
+
1276
+
1277
+ </p><div class="docstring">
1278
+ <div class="discussion">
1279
+ <p>Returns the connection state of this player</p>
1280
+
1281
+
1282
+ </div>
1283
+ </div>
1284
+ <div class="tags">
1285
+
1286
+ <h3>Returns:</h3>
1287
+ <ul class="return">
1288
+
1289
+ <li>
1290
+
1291
+
1292
+ <span class='type'>(<tt>String</tt>)</span>
1293
+
1294
+
1295
+
1296
+ &mdash;
1297
+ <div class='inline'><p>The connection state of this player</p>
1298
+ </div>
1299
+
1300
+ </li>
1301
+
1302
+ </ul>
1303
+
1304
+ </div><table class="source_code">
1305
+ <tr>
1306
+ <td>
1307
+ <pre class="lines">
1308
+
1309
+
1310
+ 68
1311
+ 69
1312
+ 70</pre>
1313
+ </td>
1314
+ <td>
1315
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 68</span>
1316
+
1317
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_state identifier id'>state</span>
1318
+ <span class='rubyid_@state ivar id'>@state</span>
1319
+ <span class='rubyid_end end kw'>end</span>
1320
+ </pre>
1321
+ </td>
1322
+ </tr>
1323
+ </table>
1324
+ </div>
1325
+
1326
+
1327
+ <span id=""></span>
1328
+ <span id="steam_id-instance_method"></span>
1329
+ <div class="method_details ">
1330
+ <p class="signature " id="steam_id-instance_method">
1331
+
1332
+ - (<tt>String</tt>) <strong>steam_id</strong> <span class="extras">(readonly)</span>
1333
+
1334
+
1335
+
1336
+ </p><div class="docstring">
1337
+ <div class="discussion">
1338
+ <p>Returns the SteamID of this player</p>
1339
+
1340
+
1341
+ </div>
1342
+ </div>
1343
+ <div class="tags">
1344
+
1345
+ <h3>Returns:</h3>
1346
+ <ul class="return">
1347
+
1348
+ <li>
1349
+
1350
+
1351
+ <span class='type'>(<tt>String</tt>)</span>
1352
+
1353
+
1354
+
1355
+ &mdash;
1356
+ <div class='inline'><p>The SteamID of this player</p>
1357
+ </div>
1358
+
1359
+ </li>
1360
+
1361
+ </ul>
1362
+
1363
+ </div><table class="source_code">
1364
+ <tr>
1365
+ <td>
1366
+ <pre class="lines">
1367
+
1368
+
1369
+ 73
1370
+ 74
1371
+ 75</pre>
1372
+ </td>
1373
+ <td>
1374
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 73</span>
1375
+
1376
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_steam_id identifier id'>steam_id</span>
1377
+ <span class='rubyid_@steam_id ivar id'>@steam_id</span>
1378
+ <span class='rubyid_end end kw'>end</span>
1379
+ </pre>
1380
+ </td>
1381
+ </tr>
1382
+ </table>
1383
+ </div>
1384
+
1385
+ </div>
1386
+
1387
+
1388
+ <div id="instance_method_details" class="method_details_list">
1389
+ <h2>Instance Method Details</h2>
1390
+
1391
+
1392
+ <div class="method_details first">
1393
+ <p class="signature first" id="add_info-instance_method">
1394
+
1395
+ - (<tt>Object</tt>) <strong>add_info</strong>(player_data)
1396
+
1397
+
1398
+
1399
+ </p><div class="docstring">
1400
+ <div class="discussion">
1401
+ <p>Extends a player object with information retrieved from a RCON call to
1402
+ the status command</p>
1403
+
1404
+
1405
+ </div>
1406
+ </div>
1407
+ <div class="tags">
1408
+ <h3>Parameters:</h3>
1409
+ <ul class="param">
1410
+
1411
+ <li>
1412
+
1413
+ <span class='name'>player_data</span>
1414
+
1415
+
1416
+ <span class='type'>(<tt>String</tt>)</span>
1417
+
1418
+
1419
+
1420
+ &mdash;
1421
+ <div class='inline'><p>The player data retrieved from <code>rcon status</code></p>
1422
+ </div>
1423
+
1424
+ </li>
1425
+
1426
+ </ul>
1427
+
1428
+ <h3>Raises:</h3>
1429
+ <ul class="raise">
1430
+
1431
+ <li>
1432
+
1433
+
1434
+ <span class='type'>(<tt><span class='object_link'><a href="Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
1435
+
1436
+
1437
+
1438
+ &mdash;
1439
+ <div class='inline'><p>if the information belongs to another player</p>
1440
+ </div>
1441
+
1442
+ </li>
1443
+
1444
+ </ul>
1445
+
1446
+ </div><table class="source_code">
1447
+ <tr>
1448
+ <td>
1449
+ <pre class="lines">
1450
+
1451
+
1452
+ 95
1453
+ 96
1454
+ 97
1455
+ 98
1456
+ 99
1457
+ 100
1458
+ 101
1459
+ 102
1460
+ 103
1461
+ 104
1462
+ 105
1463
+ 106
1464
+ 107
1465
+ 108
1466
+ 109
1467
+ 110
1468
+ 111
1469
+ 112
1470
+ 113
1471
+ 114
1472
+ 115
1473
+ 116
1474
+ 117</pre>
1475
+ </td>
1476
+ <td>
1477
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 95</span>
1478
+
1479
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_add_info identifier id'>add_info</span><span class='lparen token'>(</span><span class='rubyid_player_data identifier id'>player_data</span><span class='rparen token'>)</span>
1480
+ <span class='rubyid_unless unless kw'>unless</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> <span class='eq op'>==</span> <span class='rubyid_@name ivar id'>@name</span>
1481
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='string val'>'Information to add belongs to a different player.'</span>
1482
+ <span class='rubyid_end end kw'>end</span>
1483
+
1484
+ <span class='rubyid_@extended ivar id'>@extended</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span>
1485
+
1486
+ <span class='rubyid_@real_id ivar id'>@real_id</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'>:userid</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1487
+ <span class='rubyid_@steam_id ivar id'>@steam_id</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'>:uniqueid</span><span class='rbrack token'>]</span>
1488
+ <span class='rubyid_@state ivar id'>@state</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'>:state</span><span class='rbrack token'>]</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_player_data identifier id'>player_data</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='symbol val'>:state</span>
1489
+
1490
+ <span class='rubyid_if if kw'>if</span> <span class='notop op'>!</span><span class='rubyid_bot? fid id'>bot?</span>
1491
+ <span class='rubyid_@loss ivar id'>@loss</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'>:loss</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1492
+ <span class='rubyid_@ping ivar id'>@ping</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'>:ping</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1493
+
1494
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_player_data identifier id'>player_data</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='colon op'>:</span><span class='rubyid_adr identifier id'>adr</span>
1495
+ <span class='rubyid_@ip_address ivar id'>@ip_address</span><span class='comma token'>,</span> <span class='rubyid_@client_port ivar id'>@client_port</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'>:adr</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>':'</span><span class='rparen token'>)</span>
1496
+ <span class='rubyid_@client_port ivar id'>@client_port</span> <span class='assign token'>=</span> <span class='rubyid_@client_port ivar id'>@client_port</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1497
+ <span class='rubyid_end end kw'>end</span>
1498
+
1499
+ <span class='rubyid_@rate ivar id'>@rate</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'>:rate</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_player_data identifier id'>player_data</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='symbol val'>:rate</span>
1500
+ <span class='rubyid_end end kw'>end</span>
1501
+ <span class='rubyid_end end kw'>end</span>
1502
+ </pre>
1503
+ </td>
1504
+ </tr>
1505
+ </table>
1506
+ </div>
1507
+
1508
+ <div class="method_details ">
1509
+ <p class="signature " id="bot?-instance_method">
1510
+
1511
+ - (<tt>Boolean</tt>) <strong>bot?</strong>
1512
+
1513
+
1514
+
1515
+ </p><div class="docstring">
1516
+ <div class="discussion">
1517
+ <p>Returns whether this player is a bot</p>
1518
+
1519
+
1520
+ </div>
1521
+ </div>
1522
+ <div class="tags">
1523
+
1524
+ <h3>Returns:</h3>
1525
+ <ul class="return">
1526
+
1527
+ <li>
1528
+
1529
+
1530
+ <span class='type'>(<tt>Boolean</tt>)</span>
1531
+
1532
+
1533
+
1534
+ &mdash;
1535
+ <div class='inline'><p>bool <code>true</code> if this player is a bot</p>
1536
+ </div>
1537
+
1538
+ </li>
1539
+
1540
+ </ul>
1541
+
1542
+ </div><table class="source_code">
1543
+ <tr>
1544
+ <td>
1545
+ <pre class="lines">
1546
+
1547
+
1548
+ 122
1549
+ 123
1550
+ 124</pre>
1551
+ </td>
1552
+ <td>
1553
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 122</span>
1554
+
1555
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_bot? fid id'>bot?</span>
1556
+ <span class='rubyid_@steam_id ivar id'>@steam_id</span> <span class='eq op'>==</span> <span class='string val'>'BOT'</span>
1557
+ <span class='rubyid_end end kw'>end</span>
1558
+ </pre>
1559
+ </td>
1560
+ </tr>
1561
+ </table>
1562
+ </div>
1563
+
1564
+ <div class="method_details ">
1565
+ <p class="signature " id="extended?-instance_method">
1566
+
1567
+ - (<tt>Boolean</tt>) <strong>extended?</strong>
1568
+
1569
+
1570
+
1571
+ </p><div class="docstring">
1572
+ <div class="discussion">
1573
+ <p>Returns whether this player object has extended information gathered
1574
+ using RCON</p>
1575
+
1576
+
1577
+ </div>
1578
+ </div>
1579
+ <div class="tags">
1580
+
1581
+ <h3>Returns:</h3>
1582
+ <ul class="return">
1583
+
1584
+ <li>
1585
+
1586
+
1587
+ <span class='type'>(<tt>Boolean</tt>)</span>
1588
+
1589
+
1590
+
1591
+ &mdash;
1592
+ <div class='inline'><p>bool <code>true</code> if extended information for this player is available</p>
1593
+ </div>
1594
+
1595
+ </li>
1596
+
1597
+ </ul>
1598
+
1599
+ </div><table class="source_code">
1600
+ <tr>
1601
+ <td>
1602
+ <pre class="lines">
1603
+
1604
+
1605
+ 130
1606
+ 131
1607
+ 132</pre>
1608
+ </td>
1609
+ <td>
1610
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 130</span>
1611
+
1612
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_extended? fid id'>extended?</span>
1613
+ <span class='rubyid_@extended ivar id'>@extended</span>
1614
+ <span class='rubyid_end end kw'>end</span>
1615
+ </pre>
1616
+ </td>
1617
+ </tr>
1618
+ </table>
1619
+ </div>
1620
+
1621
+ <div class="method_details ">
1622
+ <p class="signature " id="to_s-instance_method">
1623
+
1624
+ - (<tt>String</tt>) <strong>to_s</strong>
1625
+
1626
+
1627
+
1628
+ </p><div class="docstring">
1629
+ <div class="discussion">
1630
+ <p>Returns a string representation of this player</p>
1631
+
1632
+
1633
+ </div>
1634
+ </div>
1635
+ <div class="tags">
1636
+
1637
+ <h3>Returns:</h3>
1638
+ <ul class="return">
1639
+
1640
+ <li>
1641
+
1642
+
1643
+ <span class='type'>(<tt>String</tt>)</span>
1644
+
1645
+
1646
+
1647
+ &mdash;
1648
+ <div class='inline'><p>A string representing this player</p>
1649
+ </div>
1650
+
1651
+ </li>
1652
+
1653
+ </ul>
1654
+
1655
+ </div><table class="source_code">
1656
+ <tr>
1657
+ <td>
1658
+ <pre class="lines">
1659
+
1660
+
1661
+ 137
1662
+ 138
1663
+ 139
1664
+ 140
1665
+ 141
1666
+ 142
1667
+ 143</pre>
1668
+ </td>
1669
+ <td>
1670
+ <pre class="code"><span class="info file"># File 'lib/steam/steam_player.rb', line 137</span>
1671
+
1672
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_s identifier id'>to_s</span>
1673
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_@extended ivar id'>@extended</span>
1674
+ <span class='string val'>&quot;\##@real_id \&quot;#@name\&quot;, SteamID: #@steam_id, Score: #@score, Time: #@connect_time&quot;</span>
1675
+ <span class='rubyid_else else kw'>else</span>
1676
+ <span class='string val'>&quot;\##@id \&quot;#@name\&quot;, Score: #@score, Time: #@connect_time&quot;</span>
1677
+ <span class='rubyid_end end kw'>end</span>
1678
+ <span class='rubyid_end end kw'>end</span>
1679
+ </pre>
1680
+ </td>
1681
+ </tr>
1682
+ </table>
1683
+ </div>
1684
+
1685
+ </div>
1686
+
1687
+ </div>
1688
+
1689
+ <div id="footer">
1690
+ Generated on Mon Apr 30 07:03:11 2012 by
1691
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1692
+ 0.7.5 (ruby-1.8.7).
1693
+ </div>
1694
+
1695
+ </body>
1696
+ </html>