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,1609 @@
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: GameLeaderboard
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
+ 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
+
36
+
37
+ <span class="title">GameLeaderboard</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>Class: GameLeaderboard
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">GameLeaderboard</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/steam/community/game_leaderboard.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+ <p>The GameLeaderboard class represents a single leaderboard for a specific game</p>
105
+
106
+
107
+ </div>
108
+ </div>
109
+ <div class="tags">
110
+
111
+ <p class="tag_title">Author:</p>
112
+ <ul class="author">
113
+
114
+ <li>
115
+
116
+
117
+
118
+
119
+
120
+ <div class='inline'><p>Sebastian Staudt</p>
121
+ </div>
122
+
123
+ </li>
124
+
125
+ </ul>
126
+
127
+ </div>
128
+ <h2>Constant Summary</h2>
129
+
130
+ <dl class="constants">
131
+
132
+ <dt id="LEADERBOARD_DISPLAY_TYPE_NONE-constant" class="">LEADERBOARD_DISPLAY_TYPE_NONE =
133
+
134
+ </dt>
135
+ <dd><pre class="code"><span class='integer val'>0</span>
136
+ </pre></dd>
137
+
138
+ <dt id="LEADERBOARD_DISPLAY_TYPE_NUMERIC-constant" class="">LEADERBOARD_DISPLAY_TYPE_NUMERIC =
139
+
140
+ </dt>
141
+ <dd><pre class="code"><span class='integer val'>1</span>
142
+ </pre></dd>
143
+
144
+ <dt id="LEADERBOARD_DISPLAY_TYPE_SECONDS-constant" class="">LEADERBOARD_DISPLAY_TYPE_SECONDS =
145
+
146
+ </dt>
147
+ <dd><pre class="code"><span class='integer val'>2</span>
148
+ </pre></dd>
149
+
150
+ <dt id="LEADERBOARD_DISPLAY_TYPE_MILLISECONDS-constant" class="">LEADERBOARD_DISPLAY_TYPE_MILLISECONDS =
151
+
152
+ </dt>
153
+ <dd><pre class="code"><span class='integer val'>3</span>
154
+ </pre></dd>
155
+
156
+ <dt id="LEADERBOARD_SORT_METHOD_NONE-constant" class="">LEADERBOARD_SORT_METHOD_NONE =
157
+
158
+ </dt>
159
+ <dd><pre class="code"><span class='integer val'>0</span>
160
+ </pre></dd>
161
+
162
+ <dt id="LEADERBOARD_SORT_METHOD_ASC-constant" class="">LEADERBOARD_SORT_METHOD_ASC =
163
+
164
+ </dt>
165
+ <dd><pre class="code"><span class='integer val'>1</span>
166
+ </pre></dd>
167
+
168
+ <dt id="LEADERBOARD_SORT_METHOD_DESC-constant" class="">LEADERBOARD_SORT_METHOD_DESC =
169
+
170
+ </dt>
171
+ <dd><pre class="code"><span class='integer val'>2</span>
172
+ </pre></dd>
173
+
174
+ <dt id="leaderboards-classvariable" class="">@@leaderboards =
175
+
176
+ </dt>
177
+ <dd><pre class="code"><span class='lbrace token'>{</span><span class='rbrace token'>}</span>
178
+ </pre></dd>
179
+
180
+ </dl>
181
+
182
+
183
+
184
+
185
+
186
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
187
+ <ul class="summary">
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#display_type-instance_method" title="#display_type (instance method)">- (Fixnum) <strong>display_type</strong> </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+ <span class="note title readonly">readonly</span>
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <span class="summary_desc"><div class='inline'><p>Returns the display type of the scores on this leaderboard.</p>
212
+ </div></span>
213
+
214
+ </li>
215
+
216
+
217
+ <li class="public ">
218
+ <span class="summary_signature">
219
+
220
+ <a href="#entry_count-instance_method" title="#entry_count (instance method)">- (Fixnum) <strong>entry_count</strong> </a>
221
+
222
+
223
+
224
+ </span>
225
+
226
+
227
+
228
+
229
+ <span class="note title readonly">readonly</span>
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+ <span class="summary_desc"><div class='inline'><p>Returns the number of entries on this leaderboard.</p>
240
+ </div></span>
241
+
242
+ </li>
243
+
244
+
245
+ <li class="public ">
246
+ <span class="summary_signature">
247
+
248
+ <a href="#id-instance_method" title="#id (instance method)">- (Fixnum) <strong>id</strong> </a>
249
+
250
+
251
+
252
+ </span>
253
+
254
+
255
+
256
+
257
+ <span class="note title readonly">readonly</span>
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+ <span class="summary_desc"><div class='inline'><p>Returns the ID of the leaderboard.</p>
268
+ </div></span>
269
+
270
+ </li>
271
+
272
+
273
+ <li class="public ">
274
+ <span class="summary_signature">
275
+
276
+ <a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
277
+
278
+
279
+
280
+ </span>
281
+
282
+
283
+
284
+
285
+ <span class="note title readonly">readonly</span>
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+ <span class="summary_desc"><div class='inline'><p>Returns the name of the leaderboard.</p>
296
+ </div></span>
297
+
298
+ </li>
299
+
300
+
301
+ <li class="public ">
302
+ <span class="summary_signature">
303
+
304
+ <a href="#sort_method-instance_method" title="#sort_method (instance method)">- (Fixnum) <strong>sort_method</strong> </a>
305
+
306
+
307
+
308
+ </span>
309
+
310
+
311
+
312
+
313
+ <span class="note title readonly">readonly</span>
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+ <span class="summary_desc"><div class='inline'><p>Returns the method that is used to sort the entries on the leaderboard.</p>
324
+ </div></span>
325
+
326
+ </li>
327
+
328
+
329
+ </ul>
330
+
331
+
332
+
333
+
334
+
335
+ <h2>
336
+ Class Method Summary
337
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
338
+ </h2>
339
+
340
+ <ul class="summary">
341
+
342
+ <li class="public ">
343
+ <span class="summary_signature">
344
+
345
+ <a href="#leaderboard-class_method" title="leaderboard (class method)">+ (GameLeaderboard) <strong>leaderboard</strong>(game_name, id) </a>
346
+
347
+
348
+
349
+ </span>
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+ <span class="summary_desc"><div class='inline'><p>Returns the leaderboard for the given game and leaderboard ID or name.</p>
360
+ </div></span>
361
+
362
+ </li>
363
+
364
+
365
+ <li class="public ">
366
+ <span class="summary_signature">
367
+
368
+ <a href="#leaderboards-class_method" title="leaderboards (class method)">+ (Array&lt;GameLeaderboard&gt;) <strong>leaderboards</strong>(game_name) </a>
369
+
370
+
371
+
372
+ </span>
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+ <span class="summary_desc"><div class='inline'><p>Returns an array containing all of a game&#39;s leaderboards.</p>
383
+ </div></span>
384
+
385
+ </li>
386
+
387
+
388
+ <li class="private ">
389
+ <span class="summary_signature">
390
+
391
+ <a href="#load_leaderboards-class_method" title="load_leaderboards (class method)">+ (Object) <strong>load_leaderboards</strong>(game_name) </a>
392
+
393
+
394
+
395
+ </span>
396
+
397
+
398
+
399
+ <span class="note title private">private</span>
400
+
401
+
402
+
403
+
404
+
405
+ <span class="summary_desc"><div class='inline'><p>Loads the leaderboards of the specified games into the cache.</p>
406
+ </div></span>
407
+
408
+ </li>
409
+
410
+
411
+ </ul>
412
+
413
+ <h2>
414
+ Instance Method Summary
415
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
416
+ </h2>
417
+
418
+ <ul class="summary">
419
+
420
+ <li class="public ">
421
+ <span class="summary_signature">
422
+
423
+ <a href="#entry_for_steam_id-instance_method" title="#entry_for_steam_id (instance method)">- (GameLeaderboardEntry) <strong>entry_for_steam_id</strong>(steam_id) </a>
424
+
425
+
426
+
427
+ </span>
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+ <span class="summary_desc"><div class='inline'><p>Returns the entry on this leaderboard for the user with the given SteamID.</p>
438
+ </div></span>
439
+
440
+ </li>
441
+
442
+
443
+ <li class="public ">
444
+ <span class="summary_signature">
445
+
446
+ <a href="#entry_for_steam_id_friends-instance_method" title="#entry_for_steam_id_friends (instance method)">- (Array&lt;GameLeaderboardEntry&gt;) <strong>entry_for_steam_id_friends</strong>(steam_id) </a>
447
+
448
+
449
+
450
+ </span>
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+ <span class="summary_desc"><div class='inline'><p>Returns an array of entries on this leaderboard for the user with the given
461
+ SteamID and his/her friends.</p>
462
+ </div></span>
463
+
464
+ </li>
465
+
466
+
467
+ <li class="public ">
468
+ <span class="summary_signature">
469
+
470
+ <a href="#entry_range-instance_method" title="#entry_range (instance method)">- (Array&lt;GameLeaderboardEntry&gt;) <strong>entry_range</strong>(first, last) </a>
471
+
472
+
473
+
474
+ </span>
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+ <span class="summary_desc"><div class='inline'><p>Returns the entries on this leaderboard for a given rank range.</p>
485
+ </div></span>
486
+
487
+ </li>
488
+
489
+
490
+ <li class="private ">
491
+ <span class="summary_signature">
492
+
493
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (GameLeaderboard) <strong>initialize</strong>(board_data) </a>
494
+
495
+
496
+
497
+ </span>
498
+
499
+
500
+ <span class="note title constructor">constructor</span>
501
+
502
+
503
+ <span class="note title private">private</span>
504
+
505
+
506
+
507
+
508
+
509
+ <span class="summary_desc"><div class='inline'><p>Creates a new leaderboard instance with the given XML data.</p>
510
+ </div></span>
511
+
512
+ </li>
513
+
514
+
515
+ </ul>
516
+
517
+
518
+ <div id="constructor_details" class="method_details_list">
519
+ <h2>Constructor Details</h2>
520
+
521
+ <div class="method_details first">
522
+ <h3 class="signature first" id="initialize-instance_method">
523
+
524
+ - (<tt><span class='object_link'><a href="" title="GameLeaderboard (class)">GameLeaderboard</a></span></tt>) <strong>initialize</strong>(board_data) <span class="extras">(private)</span>
525
+
526
+
527
+
528
+
529
+
530
+ </h3><div class="docstring">
531
+ <div class="discussion">
532
+ <p>Creates a new leaderboard instance with the given XML data</p>
533
+
534
+
535
+ </div>
536
+ </div>
537
+ <div class="tags">
538
+ <p class="tag_title">Parameters:</p>
539
+ <ul class="param">
540
+
541
+ <li>
542
+
543
+ <span class='name'>board_data</span>
544
+
545
+
546
+ <span class='type'>(<tt>Hash&lt;String, Object&gt;</tt>)</span>
547
+
548
+
549
+
550
+ &mdash;
551
+ <div class='inline'><p>The XML data of the leaderboard</p>
552
+ </div>
553
+
554
+ </li>
555
+
556
+ </ul>
557
+
558
+
559
+ </div><table class="source_code">
560
+ <tr>
561
+ <td>
562
+ <pre class="lines">
563
+
564
+
565
+ 173
566
+ 174
567
+ 175
568
+ 176
569
+ 177
570
+ 178
571
+ 179
572
+ 180</pre>
573
+ </td>
574
+ <td>
575
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 173</span>
576
+
577
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_board_data identifier id'>board_data</span><span class='rparen token'>)</span>
578
+ <span class='rubyid_@url ivar id'>@url</span> <span class='assign token'>=</span> <span class='rubyid_board_data identifier id'>board_data</span><span class='lbrack token'>[</span><span class='string val'>'url'</span><span class='rbrack token'>]</span>
579
+ <span class='rubyid_@id ivar id'>@id</span> <span class='assign token'>=</span> <span class='rubyid_board_data identifier id'>board_data</span><span class='lbrack token'>[</span><span class='string val'>'lbid'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
580
+ <span class='rubyid_@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='rubyid_board_data identifier id'>board_data</span><span class='lbrack token'>[</span><span class='string val'>'name'</span><span class='rbrack token'>]</span>
581
+ <span class='rubyid_@entry_count ivar id'>@entry_count</span> <span class='assign token'>=</span> <span class='rubyid_board_data identifier id'>board_data</span><span class='lbrack token'>[</span><span class='string val'>'entries'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
582
+ <span class='rubyid_@sort_method ivar id'>@sort_method</span> <span class='assign token'>=</span> <span class='rubyid_board_data identifier id'>board_data</span><span class='lbrack token'>[</span><span class='string val'>'sortmethod'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
583
+ <span class='rubyid_@display_type ivar id'>@display_type</span> <span class='assign token'>=</span> <span class='rubyid_board_data identifier id'>board_data</span><span class='lbrack token'>[</span><span class='string val'>'displaytype'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
584
+ <span class='rubyid_end end kw'>end</span>
585
+ </pre>
586
+ </td>
587
+ </tr>
588
+ </table>
589
+ </div>
590
+
591
+ </div>
592
+
593
+ <div id="instance_attr_details" class="attr_details">
594
+ <h2>Instance Attribute Details</h2>
595
+
596
+
597
+ <span id=""></span>
598
+ <div class="method_details first">
599
+ <h3 class="signature first" id="display_type-instance_method">
600
+
601
+ - (<tt>Fixnum</tt>) <strong>display_type</strong> <span class="extras">(readonly)</span>
602
+
603
+
604
+
605
+
606
+
607
+ </h3><div class="docstring">
608
+ <div class="discussion">
609
+ <p>Returns the display type of the scores on this leaderboard</p>
610
+
611
+
612
+ </div>
613
+ </div>
614
+ <div class="tags">
615
+
616
+ <p class="tag_title">Returns:</p>
617
+ <ul class="return">
618
+
619
+ <li>
620
+
621
+
622
+ <span class='type'>(<tt>Fixnum</tt>)</span>
623
+
624
+
625
+
626
+ &mdash;
627
+ <div class='inline'><p>The display type of the scores</p>
628
+ </div>
629
+
630
+ </li>
631
+
632
+ </ul>
633
+
634
+ </div><table class="source_code">
635
+ <tr>
636
+ <td>
637
+ <pre class="lines">
638
+
639
+
640
+ 30
641
+ 31
642
+ 32</pre>
643
+ </td>
644
+ <td>
645
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 30</span>
646
+
647
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_display_type identifier id'>display_type</span>
648
+ <span class='rubyid_@display_type ivar id'>@display_type</span>
649
+ <span class='rubyid_end end kw'>end</span>
650
+ </pre>
651
+ </td>
652
+ </tr>
653
+ </table>
654
+ </div>
655
+
656
+
657
+ <span id=""></span>
658
+ <div class="method_details ">
659
+ <h3 class="signature " id="entry_count-instance_method">
660
+
661
+ - (<tt>Fixnum</tt>) <strong>entry_count</strong> <span class="extras">(readonly)</span>
662
+
663
+
664
+
665
+
666
+
667
+ </h3><div class="docstring">
668
+ <div class="discussion">
669
+ <p>Returns the number of entries on this leaderboard</p>
670
+
671
+
672
+ </div>
673
+ </div>
674
+ <div class="tags">
675
+
676
+ <p class="tag_title">Returns:</p>
677
+ <ul class="return">
678
+
679
+ <li>
680
+
681
+
682
+ <span class='type'>(<tt>Fixnum</tt>)</span>
683
+
684
+
685
+
686
+ &mdash;
687
+ <div class='inline'><p>The number of entries on this leaderboard</p>
688
+ </div>
689
+
690
+ </li>
691
+
692
+ </ul>
693
+
694
+ </div><table class="source_code">
695
+ <tr>
696
+ <td>
697
+ <pre class="lines">
698
+
699
+
700
+ 35
701
+ 36
702
+ 37</pre>
703
+ </td>
704
+ <td>
705
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 35</span>
706
+
707
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_entry_count identifier id'>entry_count</span>
708
+ <span class='rubyid_@entry_count ivar id'>@entry_count</span>
709
+ <span class='rubyid_end end kw'>end</span>
710
+ </pre>
711
+ </td>
712
+ </tr>
713
+ </table>
714
+ </div>
715
+
716
+
717
+ <span id=""></span>
718
+ <div class="method_details ">
719
+ <h3 class="signature " id="id-instance_method">
720
+
721
+ - (<tt>Fixnum</tt>) <strong>id</strong> <span class="extras">(readonly)</span>
722
+
723
+
724
+
725
+
726
+
727
+ </h3><div class="docstring">
728
+ <div class="discussion">
729
+ <p>Returns the ID of the leaderboard</p>
730
+
731
+
732
+ </div>
733
+ </div>
734
+ <div class="tags">
735
+
736
+ <p class="tag_title">Returns:</p>
737
+ <ul class="return">
738
+
739
+ <li>
740
+
741
+
742
+ <span class='type'>(<tt>Fixnum</tt>)</span>
743
+
744
+
745
+
746
+ &mdash;
747
+ <div class='inline'><p>The ID of the leaderboard</p>
748
+ </div>
749
+
750
+ </li>
751
+
752
+ </ul>
753
+
754
+ </div><table class="source_code">
755
+ <tr>
756
+ <td>
757
+ <pre class="lines">
758
+
759
+
760
+ 40
761
+ 41
762
+ 42</pre>
763
+ </td>
764
+ <td>
765
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 40</span>
766
+
767
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_id identifier id'>id</span>
768
+ <span class='rubyid_@id ivar id'>@id</span>
769
+ <span class='rubyid_end end kw'>end</span>
770
+ </pre>
771
+ </td>
772
+ </tr>
773
+ </table>
774
+ </div>
775
+
776
+
777
+ <span id=""></span>
778
+ <div class="method_details ">
779
+ <h3 class="signature " id="name-instance_method">
780
+
781
+ - (<tt>String</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
782
+
783
+
784
+
785
+
786
+
787
+ </h3><div class="docstring">
788
+ <div class="discussion">
789
+ <p>Returns the name of the leaderboard</p>
790
+
791
+
792
+ </div>
793
+ </div>
794
+ <div class="tags">
795
+
796
+ <p class="tag_title">Returns:</p>
797
+ <ul class="return">
798
+
799
+ <li>
800
+
801
+
802
+ <span class='type'>(<tt>String</tt>)</span>
803
+
804
+
805
+
806
+ &mdash;
807
+ <div class='inline'><p>The name of the leaderboard</p>
808
+ </div>
809
+
810
+ </li>
811
+
812
+ </ul>
813
+
814
+ </div><table class="source_code">
815
+ <tr>
816
+ <td>
817
+ <pre class="lines">
818
+
819
+
820
+ 45
821
+ 46
822
+ 47</pre>
823
+ </td>
824
+ <td>
825
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 45</span>
826
+
827
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_name identifier id'>name</span>
828
+ <span class='rubyid_@name ivar id'>@name</span>
829
+ <span class='rubyid_end end kw'>end</span>
830
+ </pre>
831
+ </td>
832
+ </tr>
833
+ </table>
834
+ </div>
835
+
836
+
837
+ <span id=""></span>
838
+ <div class="method_details ">
839
+ <h3 class="signature " id="sort_method-instance_method">
840
+
841
+ - (<tt>Fixnum</tt>) <strong>sort_method</strong> <span class="extras">(readonly)</span>
842
+
843
+
844
+
845
+
846
+
847
+ </h3><div class="docstring">
848
+ <div class="discussion">
849
+ <p>Returns the method that is used to sort the entries on the leaderboard</p>
850
+
851
+
852
+ </div>
853
+ </div>
854
+ <div class="tags">
855
+
856
+ <p class="tag_title">Returns:</p>
857
+ <ul class="return">
858
+
859
+ <li>
860
+
861
+
862
+ <span class='type'>(<tt>Fixnum</tt>)</span>
863
+
864
+
865
+
866
+ &mdash;
867
+ <div class='inline'><p>The sort method</p>
868
+ </div>
869
+
870
+ </li>
871
+
872
+ </ul>
873
+
874
+ </div><table class="source_code">
875
+ <tr>
876
+ <td>
877
+ <pre class="lines">
878
+
879
+
880
+ 50
881
+ 51
882
+ 52</pre>
883
+ </td>
884
+ <td>
885
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 50</span>
886
+
887
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_sort_method identifier id'>sort_method</span>
888
+ <span class='rubyid_@sort_method ivar id'>@sort_method</span>
889
+ <span class='rubyid_end end kw'>end</span>
890
+ </pre>
891
+ </td>
892
+ </tr>
893
+ </table>
894
+ </div>
895
+
896
+ </div>
897
+
898
+
899
+ <div id="class_method_details" class="method_details_list">
900
+ <h2>Class Method Details</h2>
901
+
902
+
903
+ <div class="method_details first">
904
+ <h3 class="signature first" id="leaderboard-class_method">
905
+
906
+ + (<tt><span class='object_link'><a href="" title="GameLeaderboard (class)">GameLeaderboard</a></span></tt>) <strong>leaderboard</strong>(game_name, id)
907
+
908
+
909
+
910
+
911
+
912
+ </h3><div class="docstring">
913
+ <div class="discussion">
914
+ <p>Returns the leaderboard for the given game and leaderboard ID or name</p>
915
+
916
+
917
+ </div>
918
+ </div>
919
+ <div class="tags">
920
+ <p class="tag_title">Parameters:</p>
921
+ <ul class="param">
922
+
923
+ <li>
924
+
925
+ <span class='name'>game_name</span>
926
+
927
+
928
+ <span class='type'>(<tt>String</tt>)</span>
929
+
930
+
931
+
932
+ &mdash;
933
+ <div class='inline'><p>The short name of the game</p>
934
+ </div>
935
+
936
+ </li>
937
+
938
+ <li>
939
+
940
+ <span class='name'>id</span>
941
+
942
+
943
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
944
+
945
+
946
+
947
+ &mdash;
948
+ <div class='inline'><p>The ID or name of the leaderboard to return</p>
949
+ </div>
950
+
951
+ </li>
952
+
953
+ </ul>
954
+
955
+ <p class="tag_title">Returns:</p>
956
+ <ul class="return">
957
+
958
+ <li>
959
+
960
+
961
+ <span class='type'>(<tt><span class='object_link'><a href="" title="GameLeaderboard (class)">GameLeaderboard</a></span></tt>)</span>
962
+
963
+
964
+
965
+ &mdash;
966
+ <div class='inline'><p>The matching leaderboard if available</p>
967
+ </div>
968
+
969
+ </li>
970
+
971
+ </ul>
972
+
973
+ </div><table class="source_code">
974
+ <tr>
975
+ <td>
976
+ <pre class="lines">
977
+
978
+
979
+ 57
980
+ 58
981
+ 59
982
+ 60
983
+ 61
984
+ 62
985
+ 63
986
+ 64
987
+ 65
988
+ 66
989
+ 67</pre>
990
+ </td>
991
+ <td>
992
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 57</span>
993
+
994
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_leaderboard identifier id'>leaderboard</span><span class='lparen token'>(</span><span class='rubyid_game_name identifier id'>game_name</span><span class='comma token'>,</span> <span class='rubyid_id identifier id'>id</span><span class='rparen token'>)</span>
995
+ <span class='rubyid_leaderboards identifier id'>leaderboards</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_leaderboards identifier id'>leaderboards</span> <span class='rubyid_game_name identifier id'>game_name</span>
996
+
997
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_id identifier id'>id</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Fixnum constant id'>Fixnum</span>
998
+ <span class='rubyid_leaderboards identifier id'>leaderboards</span><span class='lbrack token'>[</span><span class='rubyid_id identifier id'>id</span><span class='rbrack token'>]</span>
999
+ <span class='rubyid_else else kw'>else</span>
1000
+ <span class='rubyid_leaderboards identifier id'>leaderboards</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_board identifier id'>board</span><span class='bitor op'>|</span>
1001
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_board identifier id'>board</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_board identifier id'>board</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span> <span class='eq op'>==</span> <span class='rubyid_id identifier id'>id</span>
1002
+ <span class='rubyid_end end kw'>end</span>
1003
+ <span class='rubyid_end end kw'>end</span>
1004
+ <span class='rubyid_end end kw'>end</span>
1005
+ </pre>
1006
+ </td>
1007
+ </tr>
1008
+ </table>
1009
+ </div>
1010
+
1011
+ <div class="method_details ">
1012
+ <h3 class="signature " id="leaderboards-class_method">
1013
+
1014
+ + (<tt>Array&lt;<span class='object_link'><a href="" title="GameLeaderboard (class)">GameLeaderboard</a></span>&gt;</tt>) <strong>leaderboards</strong>(game_name)
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+ </h3><div class="docstring">
1021
+ <div class="discussion">
1022
+ <p>Returns an array containing all of a game&#39;s leaderboards</p>
1023
+
1024
+
1025
+ </div>
1026
+ </div>
1027
+ <div class="tags">
1028
+ <p class="tag_title">Parameters:</p>
1029
+ <ul class="param">
1030
+
1031
+ <li>
1032
+
1033
+ <span class='name'>game_name</span>
1034
+
1035
+
1036
+ <span class='type'>(<tt>String</tt>)</span>
1037
+
1038
+
1039
+
1040
+ &mdash;
1041
+ <div class='inline'><p>The name of the game</p>
1042
+ </div>
1043
+
1044
+ </li>
1045
+
1046
+ </ul>
1047
+
1048
+ <p class="tag_title">Returns:</p>
1049
+ <ul class="return">
1050
+
1051
+ <li>
1052
+
1053
+
1054
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="" title="GameLeaderboard (class)">GameLeaderboard</a></span>&gt;</tt>)</span>
1055
+
1056
+
1057
+
1058
+ &mdash;
1059
+ <div class='inline'><p>The leaderboards for this game</p>
1060
+ </div>
1061
+
1062
+ </li>
1063
+
1064
+ </ul>
1065
+
1066
+ </div><table class="source_code">
1067
+ <tr>
1068
+ <td>
1069
+ <pre class="lines">
1070
+
1071
+
1072
+ 73
1073
+ 74
1074
+ 75
1075
+ 76
1076
+ 77</pre>
1077
+ </td>
1078
+ <td>
1079
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 73</span>
1080
+
1081
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_leaderboards identifier id'>leaderboards</span><span class='lparen token'>(</span><span class='rubyid_game_name identifier id'>game_name</span><span class='rparen token'>)</span>
1082
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_load_leaderboards identifier id'>load_leaderboards</span> <span class='rubyid_game_name identifier id'>game_name</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_@@leaderboards ivar id'>@@leaderboards</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='rubyid_game_name identifier id'>game_name</span>
1083
+
1084
+ <span class='rubyid_@@leaderboards ivar id'>@@leaderboards</span><span class='lbrack token'>[</span><span class='rubyid_game_name identifier id'>game_name</span><span class='rbrack token'>]</span>
1085
+ <span class='rubyid_end end kw'>end</span>
1086
+ </pre>
1087
+ </td>
1088
+ </tr>
1089
+ </table>
1090
+ </div>
1091
+
1092
+ <div class="method_details ">
1093
+ <h3 class="signature " id="load_leaderboards-class_method">
1094
+
1095
+ + (<tt>Object</tt>) <strong>load_leaderboards</strong>(game_name) <span class="extras">(private)</span>
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+ </h3><div class="docstring">
1102
+ <div class="discussion">
1103
+ <p>Loads the leaderboards of the specified games into the cache</p>
1104
+
1105
+
1106
+ </div>
1107
+ </div>
1108
+ <div class="tags">
1109
+ <p class="tag_title">Parameters:</p>
1110
+ <ul class="param">
1111
+
1112
+ <li>
1113
+
1114
+ <span class='name'>game_name</span>
1115
+
1116
+
1117
+ <span class='type'>(<tt>String</tt>)</span>
1118
+
1119
+
1120
+
1121
+ &mdash;
1122
+ <div class='inline'><p>The short name of the game</p>
1123
+ </div>
1124
+
1125
+ </li>
1126
+
1127
+ </ul>
1128
+
1129
+ <p class="tag_title">Raises:</p>
1130
+ <ul class="raise">
1131
+
1132
+ <li>
1133
+
1134
+
1135
+ <span class='type'>(<tt>SteamCondenserException</tt>)</span>
1136
+
1137
+
1138
+
1139
+ &mdash;
1140
+ <div class='inline'><p>if an error occurs while fetching the
1141
+ leaderboards</p>
1142
+ </div>
1143
+
1144
+ </li>
1145
+
1146
+ </ul>
1147
+
1148
+ </div><table class="source_code">
1149
+ <tr>
1150
+ <td>
1151
+ <pre class="lines">
1152
+
1153
+
1154
+ 187
1155
+ 188
1156
+ 189
1157
+ 190
1158
+ 191
1159
+ 192
1160
+ 193
1161
+ 194
1162
+ 195
1163
+ 196
1164
+ 197
1165
+ 198
1166
+ 199</pre>
1167
+ </td>
1168
+ <td>
1169
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 187</span>
1170
+
1171
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_load_leaderboards identifier id'>load_leaderboards</span><span class='lparen token'>(</span><span class='rubyid_game_name identifier id'>game_name</span><span class='rparen token'>)</span>
1172
+ <span class='rubyid_url identifier id'>url</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;http://steamcommunity.com/stats/#{game_name}/leaderboards/?xml=1&quot;</span>
1173
+ <span class='rubyid_boards_data identifier id'>boards_data</span> <span class='assign token'>=</span> <span class='rubyid_MultiXml constant id'>MultiXml</span><span class='dot token'>.</span><span class='rubyid_parse identifier id'>parse</span><span class='lparen token'>(</span><span class='rubyid_open identifier id'>open</span><span class='lparen token'>(</span><span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='lbrace token'>{</span><span class='symbol val'>:proxy</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_true true kw'>true</span><span class='rbrace token'>}</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_values identifier id'>values</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
1174
+
1175
+ <span class='rubyid_error identifier id'>error</span> <span class='assign token'>=</span> <span class='rubyid_boards_data identifier id'>boards_data</span><span class='lbrack token'>[</span><span class='string val'>'error'</span><span class='rbrack token'>]</span>
1176
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span> <span class='rubyid_error identifier id'>error</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_error identifier id'>error</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1177
+
1178
+ <span class='rubyid_@@leaderboards ivar id'>@@leaderboards</span><span class='lbrack token'>[</span><span class='rubyid_game_name identifier id'>game_name</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1179
+ <span class='rubyid_boards_data identifier id'>boards_data</span><span class='lbrack token'>[</span><span class='string val'>'leaderboard'</span><span class='rbrack token'>]</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_board_data identifier id'>board_data</span><span class='bitor op'>|</span>
1180
+ <span class='rubyid_leaderboard identifier id'>leaderboard</span> <span class='assign token'>=</span> <span class='rubyid_GameLeaderboard constant id'>GameLeaderboard</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='rubyid_board_data identifier id'>board_data</span>
1181
+ <span class='rubyid_@@leaderboards ivar id'>@@leaderboards</span><span class='lbrack token'>[</span><span class='rubyid_game_name identifier id'>game_name</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_leaderboard identifier id'>leaderboard</span><span class='dot token'>.</span><span class='rubyid_id identifier id'>id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_leaderboard identifier id'>leaderboard</span>
1182
+ <span class='rubyid_end end kw'>end</span>
1183
+ <span class='rubyid_end end kw'>end</span>
1184
+ </pre>
1185
+ </td>
1186
+ </tr>
1187
+ </table>
1188
+ </div>
1189
+
1190
+ </div>
1191
+
1192
+ <div id="instance_method_details" class="method_details_list">
1193
+ <h2>Instance Method Details</h2>
1194
+
1195
+
1196
+ <div class="method_details first">
1197
+ <h3 class="signature first" id="entry_for_steam_id-instance_method">
1198
+
1199
+ - (<tt><span class='object_link'><a href="GameLeaderboardEntry.html" title="GameLeaderboardEntry (class)">GameLeaderboardEntry</a></span></tt>) <strong>entry_for_steam_id</strong>(steam_id)
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+ </h3><div class="docstring">
1206
+ <div class="discussion">
1207
+ <p>Returns the entry on this leaderboard for the user with the given SteamID</p>
1208
+
1209
+ <p>raise [SteamCondenserException] if an error occurs while fetching the
1210
+ leaderboard</p>
1211
+
1212
+
1213
+ </div>
1214
+ </div>
1215
+ <div class="tags">
1216
+ <p class="tag_title">Parameters:</p>
1217
+ <ul class="param">
1218
+
1219
+ <li>
1220
+
1221
+ <span class='name'>steam_id</span>
1222
+
1223
+
1224
+ <span class='type'>(<tt>Fixnum</tt>, <tt><span class='object_link'><a href="SteamId.html" title="SteamId (class)">SteamId</a></span></tt>)</span>
1225
+
1226
+
1227
+
1228
+ &mdash;
1229
+ <div class='inline'><p>The 64bit SteamID or the <code>SteamId</code> object
1230
+ of the user</p>
1231
+ </div>
1232
+
1233
+ </li>
1234
+
1235
+ </ul>
1236
+
1237
+ <p class="tag_title">Returns:</p>
1238
+ <ul class="return">
1239
+
1240
+ <li>
1241
+
1242
+
1243
+ <span class='type'>(<tt><span class='object_link'><a href="GameLeaderboardEntry.html" title="GameLeaderboardEntry (class)">GameLeaderboardEntry</a></span></tt>)</span>
1244
+
1245
+
1246
+
1247
+ &mdash;
1248
+ <div class='inline'><p>The entry of the user if available</p>
1249
+ </div>
1250
+
1251
+ </li>
1252
+
1253
+ </ul>
1254
+ <p class="tag_title">Raises:</p>
1255
+ <ul class="raise">
1256
+
1257
+ <li>
1258
+
1259
+
1260
+ <span class='type'>(<tt><span class='object_link'><a href="SteamCondenserError.html" title="SteamCondenserError (class)">SteamCondenserError</a></span></tt>)</span>
1261
+
1262
+
1263
+
1264
+ </li>
1265
+
1266
+ </ul>
1267
+
1268
+ </div><table class="source_code">
1269
+ <tr>
1270
+ <td>
1271
+ <pre class="lines">
1272
+
1273
+
1274
+ 86
1275
+ 87
1276
+ 88
1277
+ 89
1278
+ 90
1279
+ 91
1280
+ 92
1281
+ 93
1282
+ 94
1283
+ 95
1284
+ 96
1285
+ 97
1286
+ 98
1287
+ 99
1288
+ 100
1289
+ 101
1290
+ 102</pre>
1291
+ </td>
1292
+ <td>
1293
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 86</span>
1294
+
1295
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_entry_for_steam_id identifier id'>entry_for_steam_id</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='rparen token'>)</span>
1296
+ <span class='rubyid_steam_id identifier id'>steam_id</span> <span class='assign token'>=</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='dot token'>.</span><span class='rubyid_steam_id64 identifier id'>steam_id64</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_SteamId constant id'>SteamId</span>
1297
+
1298
+ <span class='rubyid_url identifier id'>url</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;#@url&amp;steamid=#{steam_id}&quot;</span>
1299
+ <span class='rubyid_xml_data identifier id'>xml_data</span> <span class='assign token'>=</span> <span class='rubyid_MultiXml constant id'>MultiXml</span><span class='dot token'>.</span><span class='rubyid_parse identifier id'>parse</span><span class='lparen token'>(</span><span class='rubyid_open identifier id'>open</span><span class='lparen token'>(</span><span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='lbrace token'>{</span><span class='symbol val'>:proxy</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_true true kw'>true</span><span class='rbrace token'>}</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_values identifier id'>values</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
1300
+
1301
+ <span class='rubyid_error identifier id'>error</span> <span class='assign token'>=</span> <span class='rubyid_xml_data identifier id'>xml_data</span><span class='lbrack token'>[</span><span class='string val'>'error'</span><span class='rbrack token'>]</span>
1302
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span> <span class='rubyid_error identifier id'>error</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_error identifier id'>error</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1303
+
1304
+ <span class='rubyid_xml_data identifier id'>xml_data</span><span class='lbrack token'>[</span><span class='string val'>'entries'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'entry'</span><span class='rbrack token'>]</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_entry_data identifier id'>entry_data</span><span class='bitor op'>|</span>
1305
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_entry_data identifier id'>entry_data</span><span class='lbrack token'>[</span><span class='string val'>'steamid'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='eq op'>==</span> <span class='rubyid_steam_id identifier id'>steam_id</span>
1306
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_GameLeaderboardEntry constant id'>GameLeaderboardEntry</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='rubyid_entry_data identifier id'>entry_data</span><span class='comma token'>,</span> <span class='rubyid_self self kw'>self</span>
1307
+ <span class='rubyid_end end kw'>end</span>
1308
+ <span class='rubyid_end end kw'>end</span>
1309
+
1310
+ <span class='rubyid_nil nil kw'>nil</span>
1311
+ <span class='rubyid_end end kw'>end</span>
1312
+ </pre>
1313
+ </td>
1314
+ </tr>
1315
+ </table>
1316
+ </div>
1317
+
1318
+ <div class="method_details ">
1319
+ <h3 class="signature " id="entry_for_steam_id_friends-instance_method">
1320
+
1321
+ - (<tt>Array&lt;<span class='object_link'><a href="GameLeaderboardEntry.html" title="GameLeaderboardEntry (class)">GameLeaderboardEntry</a></span>&gt;</tt>) <strong>entry_for_steam_id_friends</strong>(steam_id)
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+ </h3><div class="docstring">
1328
+ <div class="discussion">
1329
+ <p>Returns an array of entries on this leaderboard for the user with the given
1330
+ SteamID and his/her friends</p>
1331
+
1332
+ <p>raise [SteamCondenserException] if an error occurs while fetching the
1333
+ leaderboard</p>
1334
+
1335
+
1336
+ </div>
1337
+ </div>
1338
+ <div class="tags">
1339
+ <p class="tag_title">Parameters:</p>
1340
+ <ul class="param">
1341
+
1342
+ <li>
1343
+
1344
+ <span class='name'>steam_id</span>
1345
+
1346
+
1347
+ <span class='type'>(<tt>Fixnum</tt>, <tt><span class='object_link'><a href="SteamId.html" title="SteamId (class)">SteamId</a></span></tt>)</span>
1348
+
1349
+
1350
+
1351
+ &mdash;
1352
+ <div class='inline'><p>The 64bit SteamID or the <code>SteamId</code> object
1353
+ of the user</p>
1354
+ </div>
1355
+
1356
+ </li>
1357
+
1358
+ </ul>
1359
+
1360
+ <p class="tag_title">Returns:</p>
1361
+ <ul class="return">
1362
+
1363
+ <li>
1364
+
1365
+
1366
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="GameLeaderboardEntry.html" title="GameLeaderboardEntry (class)">GameLeaderboardEntry</a></span>&gt;</tt>)</span>
1367
+
1368
+
1369
+
1370
+ &mdash;
1371
+ <div class='inline'><p>The entries of the user and his/her
1372
+ friends</p>
1373
+ </div>
1374
+
1375
+ </li>
1376
+
1377
+ </ul>
1378
+ <p class="tag_title">Raises:</p>
1379
+ <ul class="raise">
1380
+
1381
+ <li>
1382
+
1383
+
1384
+ <span class='type'>(<tt><span class='object_link'><a href="SteamCondenserError.html" title="SteamCondenserError (class)">SteamCondenserError</a></span></tt>)</span>
1385
+
1386
+
1387
+
1388
+ </li>
1389
+
1390
+ </ul>
1391
+
1392
+ </div><table class="source_code">
1393
+ <tr>
1394
+ <td>
1395
+ <pre class="lines">
1396
+
1397
+
1398
+ 113
1399
+ 114
1400
+ 115
1401
+ 116
1402
+ 117
1403
+ 118
1404
+ 119
1405
+ 120
1406
+ 121
1407
+ 122
1408
+ 123
1409
+ 124
1410
+ 125
1411
+ 126
1412
+ 127
1413
+ 128
1414
+ 129</pre>
1415
+ </td>
1416
+ <td>
1417
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 113</span>
1418
+
1419
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_entry_for_steam_id_friends identifier id'>entry_for_steam_id_friends</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='rparen token'>)</span>
1420
+ <span class='rubyid_steam_id identifier id'>steam_id</span> <span class='assign token'>=</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='dot token'>.</span><span class='rubyid_steam_id64 identifier id'>steam_id64</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_SteamId constant id'>SteamId</span>
1421
+
1422
+ <span class='rubyid_url identifier id'>url</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;#@url&amp;steamid=#{steam_id}&quot;</span>
1423
+ <span class='rubyid_xml_data identifier id'>xml_data</span> <span class='assign token'>=</span> <span class='rubyid_MultiXml constant id'>MultiXml</span><span class='dot token'>.</span><span class='rubyid_parse identifier id'>parse</span><span class='lparen token'>(</span><span class='rubyid_open identifier id'>open</span><span class='lparen token'>(</span><span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='lbrace token'>{</span><span class='symbol val'>:proxy</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_true true kw'>true</span><span class='rbrace token'>}</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_values identifier id'>values</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
1424
+
1425
+ <span class='rubyid_error identifier id'>error</span> <span class='assign token'>=</span> <span class='rubyid_xml_data identifier id'>xml_data</span><span class='lbrack token'>[</span><span class='string val'>'error'</span><span class='rbrack token'>]</span>
1426
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span> <span class='rubyid_error identifier id'>error</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_error identifier id'>error</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1427
+
1428
+ <span class='rubyid_entries identifier id'>entries</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1429
+ <span class='rubyid_xml_data identifier id'>xml_data</span><span class='lbrack token'>[</span><span class='string val'>'entries'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'entry'</span><span class='rbrack token'>]</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_entry_data identifier id'>entry_data</span><span class='bitor op'>|</span>
1430
+ <span class='rubyid_rank identifier id'>rank</span> <span class='assign token'>=</span> <span class='rubyid_entry_data identifier id'>entry_data</span><span class='lbrack token'>[</span><span class='string val'>'rank'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1431
+ <span class='rubyid_entries identifier id'>entries</span><span class='lbrack token'>[</span><span class='rubyid_rank identifier id'>rank</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_GameLeaderboardEntry constant id'>GameLeaderboardEntry</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='rubyid_entry_data identifier id'>entry_data</span><span class='comma token'>,</span> <span class='rubyid_self self kw'>self</span>
1432
+ <span class='rubyid_end end kw'>end</span>
1433
+
1434
+ <span class='rubyid_entries identifier id'>entries</span>
1435
+ <span class='rubyid_end end kw'>end</span>
1436
+ </pre>
1437
+ </td>
1438
+ </tr>
1439
+ </table>
1440
+ </div>
1441
+
1442
+ <div class="method_details ">
1443
+ <h3 class="signature " id="entry_range-instance_method">
1444
+
1445
+ - (<tt>Array&lt;<span class='object_link'><a href="GameLeaderboardEntry.html" title="GameLeaderboardEntry (class)">GameLeaderboardEntry</a></span>&gt;</tt>) <strong>entry_range</strong>(first, last)
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+ </h3><div class="docstring">
1452
+ <div class="discussion">
1453
+ <p>Returns the entries on this leaderboard for a given rank range</p>
1454
+
1455
+ <p>The range is inclusive and a maximum of 5001 entries can be returned in a
1456
+ single request.</p>
1457
+
1458
+ <p>raise [SteamCondenserException] if an error occurs while fetching the
1459
+ leaderboard</p>
1460
+
1461
+
1462
+ </div>
1463
+ </div>
1464
+ <div class="tags">
1465
+ <p class="tag_title">Parameters:</p>
1466
+ <ul class="param">
1467
+
1468
+ <li>
1469
+
1470
+ <span class='name'>first</span>
1471
+
1472
+
1473
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1474
+
1475
+
1476
+
1477
+ &mdash;
1478
+ <div class='inline'><p>The first entry to return from the leaderboard</p>
1479
+ </div>
1480
+
1481
+ </li>
1482
+
1483
+ <li>
1484
+
1485
+ <span class='name'>last</span>
1486
+
1487
+
1488
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1489
+
1490
+
1491
+
1492
+ &mdash;
1493
+ <div class='inline'><p>The last entry to return from the leaderboard</p>
1494
+ </div>
1495
+
1496
+ </li>
1497
+
1498
+ </ul>
1499
+
1500
+ <p class="tag_title">Returns:</p>
1501
+ <ul class="return">
1502
+
1503
+ <li>
1504
+
1505
+
1506
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="GameLeaderboardEntry.html" title="GameLeaderboardEntry (class)">GameLeaderboardEntry</a></span>&gt;</tt>)</span>
1507
+
1508
+
1509
+
1510
+ &mdash;
1511
+ <div class='inline'><p>The entries that match the given rank
1512
+ range</p>
1513
+ </div>
1514
+
1515
+ </li>
1516
+
1517
+ </ul>
1518
+ <p class="tag_title">Raises:</p>
1519
+ <ul class="raise">
1520
+
1521
+ <li>
1522
+
1523
+
1524
+ <span class='type'>(<tt><span class='object_link'><a href="SteamCondenserError.html" title="SteamCondenserError (class)">SteamCondenserError</a></span></tt>)</span>
1525
+
1526
+
1527
+
1528
+ </li>
1529
+
1530
+ </ul>
1531
+
1532
+ </div><table class="source_code">
1533
+ <tr>
1534
+ <td>
1535
+ <pre class="lines">
1536
+
1537
+
1538
+ 142
1539
+ 143
1540
+ 144
1541
+ 145
1542
+ 146
1543
+ 147
1544
+ 148
1545
+ 149
1546
+ 150
1547
+ 151
1548
+ 152
1549
+ 153
1550
+ 154
1551
+ 155
1552
+ 156
1553
+ 157
1554
+ 158
1555
+ 159
1556
+ 160
1557
+ 161
1558
+ 162
1559
+ 163
1560
+ 164
1561
+ 165
1562
+ 166</pre>
1563
+ </td>
1564
+ <td>
1565
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_leaderboard.rb', line 142</span>
1566
+
1567
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_entry_range identifier id'>entry_range</span><span class='lparen token'>(</span><span class='rubyid_first identifier id'>first</span><span class='comma token'>,</span> <span class='rubyid_last identifier id'>last</span><span class='rparen token'>)</span>
1568
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_last identifier id'>last</span> <span class='lt op'>&lt;</span> <span class='rubyid_first identifier id'>first</span>
1569
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span>
1570
+ <span class='string val'>'First entry must be prior to last entry for leaderboard entry lookup.'</span>
1571
+ <span class='rubyid_end end kw'>end</span>
1572
+
1573
+ <span class='rubyid_if if kw'>if</span> <span class='lparen token'>(</span><span class='rubyid_last identifier id'>last</span> <span class='minus op'>-</span> <span class='rubyid_first identifier id'>first</span><span class='rparen token'>)</span> <span class='gt op'>&gt;</span> <span class='integer val'>5000</span>
1574
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span>
1575
+ <span class='string val'>'Leaderboard entry lookup is currently limited to a maximum of 5001 entries per request.'</span>
1576
+ <span class='rubyid_end end kw'>end</span>
1577
+
1578
+ <span class='rubyid_url identifier id'>url</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;#@url&amp;start=#{first}&amp;end=#{last}&quot;</span>
1579
+ <span class='rubyid_xml_data identifier id'>xml_data</span> <span class='assign token'>=</span> <span class='rubyid_MultiXml constant id'>MultiXml</span><span class='dot token'>.</span><span class='rubyid_parse identifier id'>parse</span><span class='lparen token'>(</span><span class='rubyid_open identifier id'>open</span><span class='lparen token'>(</span><span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='lbrace token'>{</span><span class='symbol val'>:proxy</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_true true kw'>true</span><span class='rbrace token'>}</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_values identifier id'>values</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
1580
+
1581
+ <span class='rubyid_error identifier id'>error</span> <span class='assign token'>=</span> <span class='rubyid_xml_data identifier id'>xml_data</span><span class='lbrack token'>[</span><span class='string val'>'error'</span><span class='rbrack token'>]</span>
1582
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span> <span class='rubyid_error identifier id'>error</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_error identifier id'>error</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1583
+
1584
+ <span class='rubyid_entries identifier id'>entries</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1585
+ <span class='rubyid_xml_data identifier id'>xml_data</span><span class='lbrack token'>[</span><span class='string val'>'entries'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'entry'</span><span class='rbrack token'>]</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_entry_data identifier id'>entry_data</span><span class='bitor op'>|</span>
1586
+ <span class='rubyid_rank identifier id'>rank</span> <span class='assign token'>=</span> <span class='rubyid_entry_data identifier id'>entry_data</span><span class='lbrack token'>[</span><span class='string val'>'rank'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1587
+ <span class='rubyid_entries identifier id'>entries</span><span class='lbrack token'>[</span><span class='rubyid_rank identifier id'>rank</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_GameLeaderboardEntry constant id'>GameLeaderboardEntry</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='rubyid_entry_data identifier id'>entry_data</span><span class='comma token'>,</span> <span class='rubyid_self self kw'>self</span>
1588
+ <span class='rubyid_end end kw'>end</span>
1589
+
1590
+ <span class='rubyid_entries identifier id'>entries</span>
1591
+ <span class='rubyid_end end kw'>end</span>
1592
+ </pre>
1593
+ </td>
1594
+ </tr>
1595
+ </table>
1596
+ </div>
1597
+
1598
+ </div>
1599
+
1600
+ </div>
1601
+
1602
+ <div id="footer">
1603
+ Generated on Sat Jul 21 13:09:47 2012 by
1604
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1605
+ 0.8.2.1 (ruby-1.8.7).
1606
+ </div>
1607
+
1608
+ </body>
1609
+ </html>