steam-condenser 1.3.6 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (500) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +6 -1
  3. data/Gemfile.lock +1 -1
  4. data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +426 -0
  5. data/doc/A2S_INFO_Packet.html +260 -0
  6. data/doc/A2S_PLAYER_Packet.html +295 -0
  7. data/doc/A2S_RULES_Packet.html +296 -0
  8. data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
  9. data/doc/AbstractL4DStats.html +1023 -0
  10. data/doc/AbstractL4DWeapon.html +749 -0
  11. data/doc/AlienSwarmMission.html +1555 -0
  12. data/doc/AlienSwarmStats.html +1012 -0
  13. data/doc/AlienSwarmWeapon.html +640 -0
  14. data/doc/AppNews.html +1441 -0
  15. data/doc/C2M_CHECKMD5_Packet.html +342 -0
  16. data/doc/CSSMap.html +805 -0
  17. data/doc/CSSStats.html +866 -0
  18. data/doc/CSSWeapon.html +888 -0
  19. data/doc/Cacheable/ClassMethods.html +697 -0
  20. data/doc/Cacheable.html +911 -0
  21. data/doc/DefenseGridStats.html +2592 -0
  22. data/doc/DoDSClass.html +1263 -0
  23. data/doc/DoDSStats.html +519 -0
  24. data/doc/DoDSWeapon.html +803 -0
  25. data/doc/Dota2BetaInventory.html +354 -0
  26. data/doc/Dota2Inventory.html +354 -0
  27. data/doc/Dota2Item.html +388 -0
  28. data/doc/GameAchievement.html +1255 -0
  29. data/doc/GameClass.html +321 -0
  30. data/doc/GameInventory.html +1469 -0
  31. data/doc/GameItem.html +1900 -0
  32. data/doc/GameItemSchema.html +1444 -0
  33. data/doc/GameLeaderboard.html +1706 -0
  34. data/doc/GameLeaderboardEntry.html +629 -0
  35. data/doc/GameServer.html +2419 -0
  36. data/doc/GameStats.html +1459 -0
  37. data/doc/GameWeapon.html +607 -0
  38. data/doc/GoldSrcServer.html +738 -0
  39. data/doc/GoldSrcSocket.html +849 -0
  40. data/doc/L4D2Map.html +737 -0
  41. data/doc/L4D2Stats.html +986 -0
  42. data/doc/L4D2Weapon.html +486 -0
  43. data/doc/L4DExplosive.html +374 -0
  44. data/doc/L4DMap.html +775 -0
  45. data/doc/L4DStats.html +563 -0
  46. data/doc/L4DWeapon.html +296 -0
  47. data/doc/M2A_SERVER_BATCH_Packet.html +430 -0
  48. data/doc/M2C_ISVALIDMD5_Packet.html +383 -0
  49. data/doc/M2S_REQUESTRESTART_Packet.html +382 -0
  50. data/doc/MasterServer.html +1069 -0
  51. data/doc/MasterServerSocket.html +295 -0
  52. data/doc/PacketFormatError.html +173 -0
  53. data/doc/Portal2Inventory.html +354 -0
  54. data/doc/Portal2Item.html +602 -0
  55. data/doc/Portal2Stats.html +400 -0
  56. data/doc/RCONAuthRequest.html +317 -0
  57. data/doc/RCONAuthResponse.html +305 -0
  58. data/doc/RCONBanError.html +252 -0
  59. data/doc/RCONExecRequest.html +317 -0
  60. data/doc/RCONExecResponse.html +406 -0
  61. data/doc/RCONGoldSrcRequest.html +363 -0
  62. data/doc/RCONGoldSrcResponse.html +367 -0
  63. data/doc/RCONNoAuthError.html +252 -0
  64. data/doc/RCONPacket.html +564 -0
  65. data/doc/RCONPacketFactory.html +300 -0
  66. data/doc/RCONSocket.html +696 -0
  67. data/doc/RCONTerminator.html +304 -0
  68. data/doc/RequestWithChallenge.html +233 -0
  69. data/doc/S2A_INFO2_Packet.html +416 -0
  70. data/doc/S2A_INFO_BasePacket.html +266 -0
  71. data/doc/S2A_INFO_DETAILED_Packet.html +371 -0
  72. data/doc/S2A_LOGSTRING_Packet.html +373 -0
  73. data/doc/S2A_PLAYER_Packet.html +417 -0
  74. data/doc/S2A_RULES_Packet.html +411 -0
  75. data/doc/S2C_CHALLENGE_Packet.html +370 -0
  76. data/doc/S2M_HEARTBEAT2_Packet.html +445 -0
  77. data/doc/Server.html +874 -0
  78. data/doc/SourceServer.html +893 -0
  79. data/doc/SourceSocket.html +350 -0
  80. data/doc/SteamCondenser/Community/AbstractL4DStats.html +1026 -0
  81. data/doc/SteamCondenser/Community/AbstractL4DWeapon.html +749 -0
  82. data/doc/SteamCondenser/Community/AlienSwarmMission.html +1557 -0
  83. data/doc/SteamCondenser/Community/AlienSwarmStats.html +1013 -0
  84. data/doc/SteamCondenser/Community/AlienSwarmWeapon.html +641 -0
  85. data/doc/SteamCondenser/Community/AppNews.html +1441 -0
  86. data/doc/SteamCondenser/Community/CSSMap.html +805 -0
  87. data/doc/SteamCondenser/Community/CSSStats.html +866 -0
  88. data/doc/SteamCondenser/Community/CSSWeapon.html +889 -0
  89. data/doc/SteamCondenser/Community/Cacheable/ClassMethods.html +695 -0
  90. data/doc/SteamCondenser/Community/Cacheable.html +911 -0
  91. data/doc/SteamCondenser/Community/DefenseGridStats.html +2593 -0
  92. data/doc/SteamCondenser/Community/DoDSClass.html +1263 -0
  93. data/doc/SteamCondenser/Community/DoDSStats.html +520 -0
  94. data/doc/SteamCondenser/Community/DoDSWeapon.html +803 -0
  95. data/doc/SteamCondenser/Community/Dota2BetaInventory.html +354 -0
  96. data/doc/SteamCondenser/Community/Dota2Inventory.html +354 -0
  97. data/doc/SteamCondenser/Community/Dota2Item.html +388 -0
  98. data/doc/SteamCondenser/Community/Dota2Match.html +505 -0
  99. data/doc/SteamCondenser/Community/GameAchievement.html +1100 -0
  100. data/doc/SteamCondenser/Community/GameClass.html +321 -0
  101. data/doc/SteamCondenser/Community/GameInventory.html +1469 -0
  102. data/doc/SteamCondenser/Community/GameItem.html +1900 -0
  103. data/doc/SteamCondenser/Community/GameItemSchema.html +1444 -0
  104. data/doc/SteamCondenser/Community/GameLeaderboard.html +1707 -0
  105. data/doc/SteamCondenser/Community/GameLeaderboardEntry.html +630 -0
  106. data/doc/SteamCondenser/Community/GameStats.html +1461 -0
  107. data/doc/SteamCondenser/Community/GameStatsSchema.html +771 -0
  108. data/doc/SteamCondenser/Community/GameStatsValue/Instance.html +262 -0
  109. data/doc/SteamCondenser/Community/GameStatsValue.html +596 -0
  110. data/doc/SteamCondenser/Community/GameWeapon.html +608 -0
  111. data/doc/SteamCondenser/Community/L4D2Map.html +737 -0
  112. data/doc/SteamCondenser/Community/L4D2Stats.html +989 -0
  113. data/doc/SteamCondenser/Community/L4D2Weapon.html +486 -0
  114. data/doc/SteamCondenser/Community/L4DExplosive.html +375 -0
  115. data/doc/SteamCondenser/Community/L4DMap.html +775 -0
  116. data/doc/SteamCondenser/Community/L4DStats.html +564 -0
  117. data/doc/SteamCondenser/Community/L4DWeapon.html +296 -0
  118. data/doc/SteamCondenser/Community/Portal2Inventory.html +354 -0
  119. data/doc/SteamCondenser/Community/Portal2Item.html +603 -0
  120. data/doc/SteamCondenser/Community/Portal2Stats.html +400 -0
  121. data/doc/SteamCondenser/Community/SteamGame.html +1862 -0
  122. data/doc/SteamCondenser/Community/SteamGroup.html +1018 -0
  123. data/doc/SteamCondenser/Community/SteamId.html +4430 -0
  124. data/doc/SteamCondenser/Community/TF2BetaInventory.html +345 -0
  125. data/doc/SteamCondenser/Community/TF2Class.html +1186 -0
  126. data/doc/SteamCondenser/Community/TF2ClassFactory.html +273 -0
  127. data/doc/SteamCondenser/Community/TF2Engineer.html +555 -0
  128. data/doc/SteamCondenser/Community/TF2GoldenWrench.html +760 -0
  129. data/doc/SteamCondenser/Community/TF2Inventory.html +354 -0
  130. data/doc/SteamCondenser/Community/TF2Item.html +602 -0
  131. data/doc/SteamCondenser/Community/TF2Medic.html +463 -0
  132. data/doc/SteamCondenser/Community/TF2Sniper.html +372 -0
  133. data/doc/SteamCondenser/Community/TF2Spy.html +553 -0
  134. data/doc/SteamCondenser/Community/TF2Stats.html +728 -0
  135. data/doc/SteamCondenser/Community/UserStats.html +760 -0
  136. data/doc/SteamCondenser/Community/WebApi.html +1116 -0
  137. data/doc/SteamCondenser/Community/XMLData.html +274 -0
  138. data/doc/SteamCondenser/Community.html +134 -0
  139. data/doc/SteamCondenser/Error/PacketFormat.html +173 -0
  140. data/doc/SteamCondenser/Error/RCONBan.html +253 -0
  141. data/doc/SteamCondenser/Error/RCONNoAuth.html +252 -0
  142. data/doc/SteamCondenser/Error/Timeout.html +254 -0
  143. data/doc/SteamCondenser/Error/WebApi.html +354 -0
  144. data/doc/SteamCondenser/Error.html +380 -0
  145. data/doc/SteamCondenser/Logging.html +616 -0
  146. data/doc/SteamCondenser/Servers/BaseServer.html +870 -0
  147. data/doc/SteamCondenser/Servers/GameServer.html +2428 -0
  148. data/doc/SteamCondenser/Servers/GoldSrcServer.html +738 -0
  149. data/doc/SteamCondenser/Servers/MasterServer.html +819 -0
  150. data/doc/SteamCondenser/Servers/Packets/A2M_GET_SERVERS_BATCH2_Packet.html +427 -0
  151. data/doc/SteamCondenser/Servers/Packets/A2S_INFO_Packet.html +260 -0
  152. data/doc/SteamCondenser/Servers/Packets/A2S_PLAYER_Packet.html +295 -0
  153. data/doc/SteamCondenser/Servers/Packets/A2S_RULES_Packet.html +296 -0
  154. data/doc/SteamCondenser/Servers/Packets/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
  155. data/doc/SteamCondenser/Servers/Packets/BasePacket.html +462 -0
  156. data/doc/SteamCondenser/Servers/Packets/M2A_SERVER_BATCH_Packet.html +430 -0
  157. data/doc/SteamCondenser/Servers/Packets/RCON/BasePacket.html +564 -0
  158. data/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthRequest.html +317 -0
  159. data/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthResponse.html +305 -0
  160. data/doc/SteamCondenser/Servers/Packets/RCON/RCONExecRequest.html +317 -0
  161. data/doc/SteamCondenser/Servers/Packets/RCON/RCONExecResponse.html +406 -0
  162. data/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcRequest.html +363 -0
  163. data/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcResponse.html +368 -0
  164. data/doc/SteamCondenser/Servers/Packets/RCON/RCONPacketFactory.html +302 -0
  165. data/doc/SteamCondenser/Servers/Packets/RCON/RCONTerminator.html +304 -0
  166. data/doc/SteamCondenser/Servers/Packets/RCON.html +119 -0
  167. data/doc/SteamCondenser/Servers/Packets/RequestWithChallenge.html +233 -0
  168. data/doc/SteamCondenser/Servers/Packets/S2A_INFO2_Packet.html +416 -0
  169. data/doc/SteamCondenser/Servers/Packets/S2A_INFO_BasePacket.html +266 -0
  170. data/doc/SteamCondenser/Servers/Packets/S2A_INFO_DETAILED_Packet.html +371 -0
  171. data/doc/SteamCondenser/Servers/Packets/S2A_LOGSTRING_Packet.html +373 -0
  172. data/doc/SteamCondenser/Servers/Packets/S2A_PLAYER_Packet.html +417 -0
  173. data/doc/SteamCondenser/Servers/Packets/S2A_RULES_Packet.html +411 -0
  174. data/doc/SteamCondenser/Servers/Packets/S2C_CHALLENGE_Packet.html +370 -0
  175. data/doc/SteamCondenser/Servers/Packets/SteamPacketFactory.html +532 -0
  176. data/doc/SteamCondenser/Servers/Packets.html +132 -0
  177. data/doc/SteamCondenser/Servers/Sockets/BaseSocket.html +733 -0
  178. data/doc/SteamCondenser/Servers/Sockets/GoldSrcSocket.html +862 -0
  179. data/doc/SteamCondenser/Servers/Sockets/MasterServerSocket.html +306 -0
  180. data/doc/SteamCondenser/Servers/Sockets/RCONSocket.html +709 -0
  181. data/doc/SteamCondenser/Servers/Sockets/SourceSocket.html +367 -0
  182. data/doc/SteamCondenser/Servers/Sockets.html +119 -0
  183. data/doc/SteamCondenser/Servers/SourceServer.html +892 -0
  184. data/doc/SteamCondenser/Servers/SteamPlayer.html +1764 -0
  185. data/doc/SteamCondenser/Servers.html +133 -0
  186. data/doc/SteamCondenser/TimeoutError.html +254 -0
  187. data/doc/SteamCondenser.html +155 -0
  188. data/doc/SteamCondenserError.html +370 -0
  189. data/doc/SteamGame.html +1950 -0
  190. data/doc/SteamGroup.html +1023 -0
  191. data/doc/SteamId.html +4299 -0
  192. data/doc/SteamPacket.html +486 -0
  193. data/doc/SteamPacketFactory.html +556 -0
  194. data/doc/SteamPlayer.html +1764 -0
  195. data/doc/SteamSocket.html +725 -0
  196. data/doc/StringIO.html +939 -0
  197. data/doc/TF2BetaInventory.html +330 -0
  198. data/doc/TF2Class.html +1185 -0
  199. data/doc/TF2ClassFactory.html +273 -0
  200. data/doc/TF2Engineer.html +555 -0
  201. data/doc/TF2GoldenWrench.html +760 -0
  202. data/doc/TF2Inventory.html +354 -0
  203. data/doc/TF2Item.html +602 -0
  204. data/doc/TF2Medic.html +463 -0
  205. data/doc/TF2Sniper.html +372 -0
  206. data/doc/TF2Spy.html +553 -0
  207. data/doc/TF2Stats.html +728 -0
  208. data/doc/WebApi.html +1108 -0
  209. data/doc/WebApiError.html +351 -0
  210. data/doc/XMLData.html +274 -0
  211. data/doc/_index.html +728 -0
  212. data/doc/class_list.html +54 -0
  213. data/doc/css/common.css +1 -0
  214. data/doc/css/full_list.css +57 -0
  215. data/doc/css/style.css +338 -0
  216. data/doc/file.CHANGELOG.html +368 -0
  217. data/doc/file.CONTRIBUTING.html +140 -0
  218. data/doc/file.LICENSE.html +100 -0
  219. data/doc/file.README.html +152 -0
  220. data/doc/file_list.html +65 -0
  221. data/doc/frames.html +28 -0
  222. data/doc/index.html +152 -0
  223. data/doc/js/app.js +214 -0
  224. data/doc/js/full_list.js +178 -0
  225. data/doc/js/jquery.js +4 -0
  226. data/doc/method_list.html +3155 -0
  227. data/doc/top-level-namespace.html +114 -0
  228. data/lib/steam/community/web_api.rb +6 -2
  229. data/lib/steam/servers/source_server.rb +8 -2
  230. data/lib/steam-condenser/version.rb +1 -1
  231. data/pkg/steam-condenser-1.3.5/Gemfile.lock +1 -1
  232. data/pkg/steam-condenser-1.3.6/CHANGELOG.md +228 -0
  233. data/pkg/steam-condenser-1.3.6/CONTRIBUTING.md +59 -0
  234. data/pkg/steam-condenser-1.3.6/Gemfile +7 -0
  235. data/pkg/steam-condenser-1.3.6/Gemfile.lock +45 -0
  236. data/pkg/steam-condenser-1.3.6/LICENSE +25 -0
  237. data/pkg/steam-condenser-1.3.6/README.md +75 -0
  238. data/pkg/steam-condenser-1.3.6/Rakefile +46 -0
  239. data/pkg/steam-condenser-1.3.6/lib/core_ext/stringio.rb +91 -0
  240. data/pkg/steam-condenser-1.3.6/lib/errors/packet_format_error.rb +13 -0
  241. data/pkg/steam-condenser-1.3.6/lib/errors/rcon_ban_error.rb +22 -0
  242. data/pkg/steam-condenser-1.3.6/lib/errors/rcon_no_auth_error.rb +21 -0
  243. data/pkg/steam-condenser-1.3.6/lib/errors/steam_condenser_error.rb +26 -0
  244. data/pkg/steam-condenser-1.3.6/lib/errors/timeout_error.rb +28 -0
  245. data/pkg/steam-condenser-1.3.6/lib/errors/web_api_error.rb +57 -0
  246. data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_mission.rb +120 -0
  247. data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_stats.rb +188 -0
  248. data/pkg/steam-condenser-1.3.6/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
  249. data/pkg/steam-condenser-1.3.6/lib/steam/community/app_news.rb +133 -0
  250. data/pkg/steam-condenser-1.3.6/lib/steam/community/cacheable.rb +199 -0
  251. data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_map.rb +61 -0
  252. data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_stats.rb +140 -0
  253. data/pkg/steam-condenser-1.3.6/lib/steam/community/css/css_weapon.rb +69 -0
  254. data/pkg/steam-condenser-1.3.6/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
  255. data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_class.rb +90 -0
  256. data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_stats.rb +62 -0
  257. data/pkg/steam-condenser-1.3.6/lib/steam/community/dods/dods_weapon.rb +67 -0
  258. data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
  259. data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_inventory.rb +30 -0
  260. data/pkg/steam-condenser-1.3.6/lib/steam/community/dota2/dota2_item.rb +33 -0
  261. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_achievement.rb +109 -0
  262. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_class.rb +22 -0
  263. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_inventory.rb +171 -0
  264. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_item.rb +155 -0
  265. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_item_schema.rb +131 -0
  266. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_leaderboard.rb +212 -0
  267. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_leaderboard_entry.rb +43 -0
  268. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_stats.rb +175 -0
  269. data/pkg/steam-condenser-1.3.6/lib/steam/community/game_weapon.rb +41 -0
  270. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/abstract_l4d_stats.rb +188 -0
  271. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
  272. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_map.rb +90 -0
  273. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_stats.rb +179 -0
  274. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
  275. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_explosive.rb +34 -0
  276. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_map.rb +65 -0
  277. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_stats.rb +73 -0
  278. data/pkg/steam-condenser-1.3.6/lib/steam/community/l4d/l4d_weapon.rb +26 -0
  279. data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_inventory.rb +30 -0
  280. data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_item.rb +55 -0
  281. data/pkg/steam-condenser-1.3.6/lib/steam/community/portal2/portal2_stats.rb +33 -0
  282. data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_game.rb +193 -0
  283. data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_group.rb +129 -0
  284. data/pkg/steam-condenser-1.3.6/lib/steam/community/steam_id.rb +495 -0
  285. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
  286. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_class.rb +92 -0
  287. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
  288. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_engineer.rb +43 -0
  289. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
  290. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_inventory.rb +30 -0
  291. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_item.rb +55 -0
  292. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_medic.rb +35 -0
  293. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_sniper.rb +28 -0
  294. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_spy.rb +41 -0
  295. data/pkg/steam-condenser-1.3.6/lib/steam/community/tf2/tf2_stats.rb +77 -0
  296. data/pkg/steam-condenser-1.3.6/lib/steam/community/web_api.rb +135 -0
  297. data/pkg/steam-condenser-1.3.6/lib/steam/community/xml_data.rb +27 -0
  298. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
  299. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_info_packet.rb +24 -0
  300. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_player_packet.rb +31 -0
  301. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_rules_packet.rb +32 -0
  302. data/pkg/steam-condenser-1.3.6/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
  303. data/pkg/steam-condenser-1.3.6/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
  304. data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
  305. data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
  306. data/pkg/steam-condenser-1.3.6/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
  307. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
  308. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
  309. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
  310. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
  311. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
  312. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
  313. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_packet.rb +57 -0
  314. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
  315. data/pkg/steam-condenser-1.3.6/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
  316. data/pkg/steam-condenser-1.3.6/lib/steam/packets/request_with_challenge.rb +19 -0
  317. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info2_packet.rb +76 -0
  318. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info_base_packet.rb +25 -0
  319. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_info_detailed_packet.rb +64 -0
  320. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_logstring_packet.rb +30 -0
  321. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_player_packet.rb +44 -0
  322. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2a_rules_packet.rb +48 -0
  323. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2c_challenge_packet.rb +35 -0
  324. data/pkg/steam-condenser-1.3.6/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
  325. data/pkg/steam-condenser-1.3.6/lib/steam/packets/steam_packet.rb +52 -0
  326. data/pkg/steam-condenser-1.3.6/lib/steam/packets/steam_packet_factory.rb +113 -0
  327. data/pkg/steam-condenser-1.3.6/lib/steam/servers/game_server.rb +393 -0
  328. data/pkg/steam-condenser-1.3.6/lib/steam/servers/goldsrc_server.rb +74 -0
  329. data/pkg/steam-condenser-1.3.6/lib/steam/servers/master_server.rb +188 -0
  330. data/pkg/steam-condenser-1.3.6/lib/steam/servers/server.rb +115 -0
  331. data/pkg/steam-condenser-1.3.6/lib/steam/servers/source_server.rb +117 -0
  332. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/goldsrc_socket.rb +142 -0
  333. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/master_server_socket.rb +34 -0
  334. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/rcon_socket.rb +103 -0
  335. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/source_socket.rb +73 -0
  336. data/pkg/steam-condenser-1.3.6/lib/steam/sockets/steam_socket.rb +91 -0
  337. data/pkg/steam-condenser-1.3.6/lib/steam/steam_player.rb +143 -0
  338. data/pkg/steam-condenser-1.3.6/lib/steam-condenser/community.rb +24 -0
  339. data/pkg/steam-condenser-1.3.6/lib/steam-condenser/servers.rb +24 -0
  340. data/pkg/steam-condenser-1.3.6/lib/steam-condenser/version.rb +11 -0
  341. data/pkg/steam-condenser-1.3.6/lib/steam-condenser.rb +18 -0
  342. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Gemfile +7 -0
  343. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Gemfile.lock +45 -0
  344. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/LICENSE +25 -0
  345. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/README.md +70 -0
  346. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/Rakefile +46 -0
  347. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/core_ext/stringio.rb +91 -0
  348. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/packet_format_error.rb +13 -0
  349. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/rcon_ban_error.rb +22 -0
  350. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/rcon_no_auth_error.rb +21 -0
  351. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/steam_condenser_error.rb +26 -0
  352. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/timeout_error.rb +28 -0
  353. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/errors/web_api_error.rb +57 -0
  354. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
  355. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_stats.rb +186 -0
  356. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
  357. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/app_news.rb +133 -0
  358. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/cacheable.rb +199 -0
  359. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_map.rb +61 -0
  360. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_stats.rb +142 -0
  361. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/css/css_weapon.rb +69 -0
  362. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
  363. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_class.rb +90 -0
  364. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_stats.rb +62 -0
  365. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dods/dods_weapon.rb +67 -0
  366. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
  367. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_inventory.rb +30 -0
  368. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/dota2/dota2_item.rb +33 -0
  369. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_achievement.rb +109 -0
  370. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_class.rb +22 -0
  371. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_inventory.rb +171 -0
  372. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_item.rb +156 -0
  373. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_item_schema.rb +131 -0
  374. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard.rb +205 -0
  375. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_leaderboard_entry.rb +43 -0
  376. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_stats.rb +175 -0
  377. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/game_weapon.rb +41 -0
  378. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_stats.rb +185 -0
  379. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
  380. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_map.rb +90 -0
  381. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_stats.rb +174 -0
  382. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
  383. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_explosive.rb +34 -0
  384. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_map.rb +65 -0
  385. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_stats.rb +73 -0
  386. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/l4d/l4d_weapon.rb +26 -0
  387. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_inventory.rb +30 -0
  388. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_item.rb +55 -0
  389. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/portal2/portal2_stats.rb +33 -0
  390. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_game.rb +193 -0
  391. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_group.rb +129 -0
  392. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/steam_id.rb +498 -0
  393. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
  394. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class.rb +92 -0
  395. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
  396. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_engineer.rb +43 -0
  397. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
  398. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_inventory.rb +30 -0
  399. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_item.rb +55 -0
  400. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_medic.rb +35 -0
  401. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_sniper.rb +28 -0
  402. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_spy.rb +41 -0
  403. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/tf2/tf2_stats.rb +77 -0
  404. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/web_api.rb +130 -0
  405. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/community/xml_data.rb +27 -0
  406. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
  407. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_info_packet.rb +24 -0
  408. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_player_packet.rb +31 -0
  409. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_rules_packet.rb +32 -0
  410. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
  411. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
  412. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
  413. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
  414. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
  415. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
  416. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
  417. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
  418. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
  419. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
  420. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
  421. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet.rb +57 -0
  422. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
  423. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
  424. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/request_with_challenge.rb +19 -0
  425. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info2_packet.rb +74 -0
  426. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_base_packet.rb +25 -0
  427. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_info_detailed_packet.rb +59 -0
  428. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_logstring_packet.rb +30 -0
  429. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_player_packet.rb +44 -0
  430. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2a_rules_packet.rb +48 -0
  431. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2c_challenge_packet.rb +35 -0
  432. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
  433. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet.rb +52 -0
  434. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/packets/steam_packet_factory.rb +108 -0
  435. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/game_server.rb +392 -0
  436. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/goldsrc_server.rb +74 -0
  437. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/master_server.rb +188 -0
  438. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/server.rb +115 -0
  439. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/servers/source_server.rb +117 -0
  440. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/goldsrc_socket.rb +142 -0
  441. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/master_server_socket.rb +34 -0
  442. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/rcon_socket.rb +103 -0
  443. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/source_socket.rb +78 -0
  444. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/sockets/steam_socket.rb +91 -0
  445. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam/steam_player.rb +143 -0
  446. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/community.rb +24 -0
  447. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/servers.rb +24 -0
  448. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser/version.rb +11 -0
  449. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/lib/steam-condenser.rb +18 -0
  450. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/steam-condenser.gemspec +26 -0
  451. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/core_ext/test_stringio.rb +59 -0
  452. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/invalid.xml +2 -0
  453. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/sonofthor.xml +882 -0
  454. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/status_goldsrc +3 -0
  455. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/status_source +3 -0
  456. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/fixtures/valve-members.xml +231 -0
  457. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/helper.rb +48 -0
  458. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_cacheable.rb +100 -0
  459. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_group.rb +83 -0
  460. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_steam_id.rb +144 -0
  461. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/community/test_web_api.rb +98 -0
  462. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/packets/test_steam_packet.rb +37 -0
  463. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_game_server.rb +296 -0
  464. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_goldsrc_server.rb +59 -0
  465. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_master_server.rb +131 -0
  466. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_server.rb +72 -0
  467. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/servers/test_source_server.rb +134 -0
  468. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_goldsrc_socket.rb +127 -0
  469. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_master_server_socket.rb +42 -0
  470. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_rcon_socket.rb +118 -0
  471. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_source_socket.rb +77 -0
  472. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5/test/steam/sockets/test_steam_socket.rb +97 -0
  473. data/pkg/steam-condenser-1.3.6/pkg/steam-condenser-1.3.5.gem +0 -0
  474. data/pkg/steam-condenser-1.3.6/steam-condenser.gemspec +25 -0
  475. data/pkg/steam-condenser-1.3.6/test/core_ext/test_stringio.rb +59 -0
  476. data/pkg/steam-condenser-1.3.6/test/fixtures/invalid.xml +2 -0
  477. data/pkg/steam-condenser-1.3.6/test/fixtures/sonofthor.xml +882 -0
  478. data/pkg/steam-condenser-1.3.6/test/fixtures/status_goldsrc +3 -0
  479. data/pkg/steam-condenser-1.3.6/test/fixtures/status_source +3 -0
  480. data/pkg/steam-condenser-1.3.6/test/fixtures/valve-members.xml +231 -0
  481. data/pkg/steam-condenser-1.3.6/test/helper.rb +48 -0
  482. data/pkg/steam-condenser-1.3.6/test/steam/community/test_cacheable.rb +103 -0
  483. data/pkg/steam-condenser-1.3.6/test/steam/community/test_steam_group.rb +83 -0
  484. data/pkg/steam-condenser-1.3.6/test/steam/community/test_steam_id.rb +144 -0
  485. data/pkg/steam-condenser-1.3.6/test/steam/community/test_web_api.rb +111 -0
  486. data/pkg/steam-condenser-1.3.6/test/steam/packets/test_steam_packet.rb +37 -0
  487. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_game_server.rb +296 -0
  488. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_goldsrc_server.rb +59 -0
  489. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_master_server.rb +131 -0
  490. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_server.rb +72 -0
  491. data/pkg/steam-condenser-1.3.6/test/steam/servers/test_source_server.rb +134 -0
  492. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_goldsrc_socket.rb +127 -0
  493. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_master_server_socket.rb +42 -0
  494. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_rcon_socket.rb +118 -0
  495. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_source_socket.rb +77 -0
  496. data/pkg/steam-condenser-1.3.6/test/steam/sockets/test_steam_socket.rb +97 -0
  497. data/pkg/steam-condenser-1.3.6.gem +0 -0
  498. data/test/steam/community/test_web_api.rb +13 -0
  499. data/test/steam/servers/test_source_server.rb +18 -7
  500. metadata +493 -3
@@ -0,0 +1,370 @@
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
+ Exception: SteamCondenserError
8
+
9
+ &mdash; Metior — API Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (S)</a> &raquo;
35
+
36
+
37
+ <span class="title">SteamCondenserError</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>Exception: SteamCondenserError
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">StandardError</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">StandardError</li>
82
+
83
+ <li class="next">SteamCondenserError</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/errors/steam_condenser_error.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+ <p>This error class is used as a base class for all errors related to Steam
107
+ Condenser&#39;s operation</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+ <p class="tag_title">Author:</p>
115
+ <ul class="author">
116
+
117
+ <li>
118
+
119
+
120
+
121
+
122
+
123
+ <div class='inline'><p>Sebastian Staudt</p>
124
+ </div>
125
+
126
+ </li>
127
+
128
+ </ul>
129
+
130
+ </div><div id="subclasses">
131
+ <h2>Direct Known Subclasses</h2>
132
+ <p class="children"><span class='object_link'><a href="PacketFormatError.html" title="PacketFormatError (class)">PacketFormatError</a></span>, <span class='object_link'><a href="RCONBanError.html" title="RCONBanError (class)">RCONBanError</a></span>, <span class='object_link'><a href="RCONNoAuthError.html" title="RCONNoAuthError (class)">RCONNoAuthError</a></span>, <span class='object_link'><a href="SteamCondenser/TimeoutError.html" title="SteamCondenser::TimeoutError (class)">SteamCondenser::TimeoutError</a></span>, <span class='object_link'><a href="WebApiError.html" title="WebApiError (class)">WebApiError</a></span></p>
133
+ </div>
134
+
135
+
136
+
137
+
138
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
139
+ <ul class="summary">
140
+
141
+ <li class="public ">
142
+ <span class="summary_signature">
143
+
144
+ <a href="#cause-instance_method" title="#cause (instance method)">- (Exception) <strong>cause</strong> </a>
145
+
146
+
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+ <span class="note title readonly">readonly</span>
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'><p>Returns the exception that caused this error.</p>
164
+ </div></span>
165
+
166
+ </li>
167
+
168
+
169
+ </ul>
170
+
171
+
172
+
173
+
174
+
175
+ <h2>
176
+ Instance Method Summary
177
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
178
+ </h2>
179
+
180
+ <ul class="summary">
181
+
182
+ <li class="public ">
183
+ <span class="summary_signature">
184
+
185
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (SteamCondenserError) <strong>initialize</strong>(message, cause = nil) </a>
186
+
187
+
188
+
189
+ </span>
190
+
191
+
192
+ <span class="note title constructor">constructor</span>
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+ <span class="summary_desc"><div class='inline'><p>Creates a new <code>SteamCondenserError</code> instance.</p>
202
+ </div></span>
203
+
204
+ </li>
205
+
206
+
207
+ </ul>
208
+
209
+
210
+
211
+ <div id="constructor_details" class="method_details_list">
212
+ <h2>Constructor Details</h2>
213
+
214
+ <div class="method_details first">
215
+ <h3 class="signature first" id="initialize-instance_method">
216
+
217
+ - (<tt><span class='object_link'><a href="" title="SteamCondenserError (class)">SteamCondenserError</a></span></tt>) <strong>initialize</strong>(message, cause = nil)
218
+
219
+
220
+
221
+
222
+
223
+ </h3><div class="docstring">
224
+ <div class="discussion">
225
+ <p>Creates a new <code>SteamCondenserError</code> instance</p>
226
+
227
+
228
+ </div>
229
+ </div>
230
+ <div class="tags">
231
+ <p class="tag_title">Parameters:</p>
232
+ <ul class="param">
233
+
234
+ <li>
235
+
236
+ <span class='name'>message</span>
237
+
238
+
239
+ <span class='type'>(<tt>String</tt>)</span>
240
+
241
+
242
+
243
+ &mdash;
244
+ <div class='inline'><p>The message to attach to the error</p>
245
+ </div>
246
+
247
+ </li>
248
+
249
+ <li>
250
+
251
+ <span class='name'>cause</span>
252
+
253
+
254
+ <span class='type'>(<tt>Exception</tt>)</span>
255
+
256
+
257
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
258
+
259
+
260
+ &mdash;
261
+ <div class='inline'><p>The exception that caused this error</p>
262
+ </div>
263
+
264
+ </li>
265
+
266
+ </ul>
267
+
268
+
269
+ </div><table class="source_code">
270
+ <tr>
271
+ <td>
272
+ <pre class="lines">
273
+
274
+
275
+ 21
276
+ 22
277
+ 23
278
+ 24</pre>
279
+ </td>
280
+ <td>
281
+ <pre class="code"><span class="info file"># File 'lib/errors/steam_condenser_error.rb', line 21</span>
282
+
283
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_message identifier id'>message</span><span class='comma token'>,</span> <span class='rubyid_cause identifier id'>cause</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
284
+ <span class='rubyid_super super kw'>super</span> <span class='rubyid_message identifier id'>message</span>
285
+ <span class='rubyid_@cause ivar id'>@cause</span> <span class='assign token'>=</span> <span class='rubyid_cause identifier id'>cause</span>
286
+ <span class='rubyid_end end kw'>end</span>
287
+ </pre>
288
+ </td>
289
+ </tr>
290
+ </table>
291
+ </div>
292
+
293
+ </div>
294
+
295
+ <div id="instance_attr_details" class="attr_details">
296
+ <h2>Instance Attribute Details</h2>
297
+
298
+
299
+ <span id=""></span>
300
+ <div class="method_details first">
301
+ <h3 class="signature first" id="cause-instance_method">
302
+
303
+ - (<tt>Exception</tt>) <strong>cause</strong> <span class="extras">(readonly)</span>
304
+
305
+
306
+
307
+
308
+
309
+ </h3><div class="docstring">
310
+ <div class="discussion">
311
+ <p>Returns the exception that caused this error</p>
312
+
313
+
314
+ </div>
315
+ </div>
316
+ <div class="tags">
317
+
318
+ <p class="tag_title">Returns:</p>
319
+ <ul class="return">
320
+
321
+ <li>
322
+
323
+
324
+ <span class='type'>(<tt>Exception</tt>)</span>
325
+
326
+
327
+
328
+ &mdash;
329
+ <div class='inline'><p>The exception that caused this error</p>
330
+ </div>
331
+
332
+ </li>
333
+
334
+ </ul>
335
+
336
+ </div><table class="source_code">
337
+ <tr>
338
+ <td>
339
+ <pre class="lines">
340
+
341
+
342
+ 15
343
+ 16
344
+ 17</pre>
345
+ </td>
346
+ <td>
347
+ <pre class="code"><span class="info file"># File 'lib/errors/steam_condenser_error.rb', line 15</span>
348
+
349
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_cause identifier id'>cause</span>
350
+ <span class='rubyid_@cause ivar id'>@cause</span>
351
+ <span class='rubyid_end end kw'>end</span>
352
+ </pre>
353
+ </td>
354
+ </tr>
355
+ </table>
356
+ </div>
357
+
358
+ </div>
359
+
360
+
361
+ </div>
362
+
363
+ <div id="footer">
364
+ Generated on Mon Sep 2 07:13:04 2013 by
365
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
366
+ 0.8.7 (ruby-1.8.7).
367
+ </div>
368
+
369
+ </body>
370
+ </html>
@@ -0,0 +1,1950 @@
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: SteamGame
8
+
9
+ &mdash; Metior — API Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (S)</a> &raquo;
35
+
36
+
37
+ <span class="title">SteamGame</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: SteamGame
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">SteamGame</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+ <dt class="r2">Includes:</dt>
94
+ <dd class="r2"><span class='object_link'><a href="Cacheable.html" title="Cacheable (module)">Cacheable</a></span></dd>
95
+
96
+
97
+
98
+
99
+
100
+ <dt class="r1 last">Defined in:</dt>
101
+ <dd class="r1 last">lib/steam/community/steam_game.rb</dd>
102
+
103
+ </dl>
104
+ <div class="clear"></div>
105
+
106
+ <h2>Overview</h2><div class="docstring">
107
+ <div class="discussion">
108
+ <p>This class represents a game available on Steam</p>
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+ <p class="tag_title">Author:</p>
116
+ <ul class="author">
117
+
118
+ <li>
119
+
120
+
121
+
122
+
123
+
124
+ <div class='inline'><p>Sebastian Staudt</p>
125
+ </div>
126
+
127
+ </li>
128
+
129
+ </ul>
130
+
131
+ </div>
132
+
133
+
134
+
135
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
136
+ <ul class="summary">
137
+
138
+ <li class="public ">
139
+ <span class="summary_signature">
140
+
141
+ <a href="#app_id-instance_method" title="#app_id (instance method)">- (Fixnum) <strong>app_id</strong> </a>
142
+
143
+
144
+
145
+ </span>
146
+
147
+
148
+
149
+
150
+ <span class="note title readonly">readonly</span>
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ <span class="summary_desc"><div class='inline'><p>Returns the Steam application ID of this game.</p>
161
+ </div></span>
162
+
163
+ </li>
164
+
165
+
166
+ <li class="public ">
167
+ <span class="summary_signature">
168
+
169
+ <a href="#icon_url-instance_method" title="#icon_url (instance method)">- (String) <strong>icon_url</strong> </a>
170
+
171
+
172
+
173
+ </span>
174
+
175
+
176
+
177
+
178
+ <span class="note title readonly">readonly</span>
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+ <span class="summary_desc"><div class='inline'><p>Returns the URL for the icon image of this game.</p>
189
+ </div></span>
190
+
191
+ </li>
192
+
193
+
194
+ <li class="public ">
195
+ <span class="summary_signature">
196
+
197
+ <a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
198
+
199
+
200
+
201
+ </span>
202
+
203
+
204
+
205
+
206
+ <span class="note title readonly">readonly</span>
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+ <span class="summary_desc"><div class='inline'><p>Returns the full name of this game.</p>
217
+ </div></span>
218
+
219
+ </li>
220
+
221
+
222
+ <li class="public ">
223
+ <span class="summary_signature">
224
+
225
+ <a href="#short_name-instance_method" title="#short_name (instance method)">- (String) <strong>short_name</strong> </a>
226
+
227
+
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+ <span class="note title readonly">readonly</span>
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+ <span class="summary_desc"><div class='inline'><p>Returns the short name of this game (also known as &quot;friendly name&quot;).</p>
245
+ </div></span>
246
+
247
+ </li>
248
+
249
+
250
+ </ul>
251
+
252
+
253
+
254
+
255
+
256
+ <h3 class="inherited">Attributes included from <span class='object_link'><a href="Cacheable.html" title="Cacheable (module)">Cacheable</a></span></h3>
257
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#fetch_time-instance_method" title="Cacheable#fetch_time (method)">#fetch_time</a></span></p>
258
+
259
+
260
+
261
+ <h2>
262
+ Class Method Summary
263
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
264
+ </h2>
265
+
266
+ <ul class="summary">
267
+
268
+ <li class="public ">
269
+ <span class="summary_signature">
270
+
271
+ <a href="#check_steam_inf-class_method" title="check_steam_inf (class method)">+ (Boolean) <strong>check_steam_inf</strong>(path) </a>
272
+
273
+
274
+
275
+ </span>
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ <span class="summary_desc"><div class='inline'><p>Checks if a game is up-to-date by reading information from a <code>steam.inf</code> file and comparing it using the Web API.</p>
286
+ </div></span>
287
+
288
+ </li>
289
+
290
+
291
+ <li class="public ">
292
+ <span class="summary_signature">
293
+
294
+ <a href="#new-class_method" title="new (class method)">+ (Object) <strong>new</strong>(app_id, game_data = nil) </a>
295
+
296
+
297
+
298
+ </span>
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+ <span class="summary_desc"><div class='inline'><p>Creates a new instance of a game with the given data and caches it.</p>
309
+ </div></span>
310
+
311
+ </li>
312
+
313
+
314
+ <li class="public ">
315
+ <span class="summary_signature">
316
+
317
+ <a href="#uptodate%3F-class_method" title="uptodate? (class method)">+ (Boolean) <strong>uptodate?</strong>(app_id, version) </a>
318
+
319
+
320
+
321
+ </span>
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+ <span class="summary_desc"><div class='inline'><p>Returns whether the given version of the game with the given application ID is up-to-date.</p>
332
+ </div></span>
333
+
334
+ </li>
335
+
336
+
337
+ </ul>
338
+
339
+ <h2>
340
+ Instance Method Summary
341
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
342
+ </h2>
343
+
344
+ <ul class="summary">
345
+
346
+ <li class="public ">
347
+ <span class="summary_signature">
348
+
349
+ <a href="#has_stats%3F-instance_method" title="#has_stats? (instance method)">- (Boolean) <strong>has_stats?</strong> </a>
350
+
351
+
352
+
353
+ </span>
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+ <span class="summary_desc"><div class='inline'><p>Returns whether this game has statistics available.</p>
364
+ </div></span>
365
+
366
+ </li>
367
+
368
+
369
+ <li class="public ">
370
+ <span class="summary_signature">
371
+
372
+ <a href="#id-instance_method" title="#id (instance method)">- (Fixnum, String) <strong>id</strong> </a>
373
+
374
+
375
+
376
+ </span>
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+ <span class="summary_desc"><div class='inline'><p>Returns a unique identifier for this game.</p>
387
+ </div></span>
388
+
389
+ </li>
390
+
391
+
392
+ <li class="private ">
393
+ <span class="summary_signature">
394
+
395
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (SteamGame) <strong>initialize</strong>(app_id, game_data) </a>
396
+
397
+
398
+
399
+ </span>
400
+
401
+
402
+ <span class="note title constructor">constructor</span>
403
+
404
+
405
+ <span class="note title private">private</span>
406
+
407
+
408
+
409
+
410
+
411
+ <span class="summary_desc"><div class='inline'><p>Creates a new instance of a game with the given data and caches it.</p>
412
+ </div></span>
413
+
414
+ </li>
415
+
416
+
417
+ <li class="public ">
418
+ <span class="summary_signature">
419
+
420
+ <a href="#leaderboard-instance_method" title="#leaderboard (instance method)">- (GameLeaderboard) <strong>leaderboard</strong>(id) </a>
421
+
422
+
423
+
424
+ </span>
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+ <span class="summary_desc"><div class='inline'><p>Returns the leaderboard for this game and the given leaderboard ID or name.</p>
435
+ </div></span>
436
+
437
+ </li>
438
+
439
+
440
+ <li class="public ">
441
+ <span class="summary_signature">
442
+
443
+ <a href="#leaderboards-instance_method" title="#leaderboards (instance method)">- (Array&lt;GameLeaderboard&gt;) <strong>leaderboards</strong> </a>
444
+
445
+
446
+
447
+ </span>
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+ <span class="summary_desc"><div class='inline'><p>Returns an array containing all of this game&#39;s leaderboards.</p>
458
+ </div></span>
459
+
460
+ </li>
461
+
462
+
463
+ <li class="public ">
464
+ <span class="summary_signature">
465
+
466
+ <a href="#logo_thumbnail_url-instance_method" title="#logo_thumbnail_url (instance method)">- (String) <strong>logo_thumbnail_url</strong> </a>
467
+
468
+
469
+
470
+ </span>
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+ <span class="summary_desc"><div class='inline'><p>Returns the URL for the logo thumbnail image of this game.</p>
481
+ </div></span>
482
+
483
+ </li>
484
+
485
+
486
+ <li class="public ">
487
+ <span class="summary_signature">
488
+
489
+ <a href="#logo_url-instance_method" title="#logo_url (instance method)">- (String) <strong>logo_url</strong> </a>
490
+
491
+
492
+
493
+ </span>
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+ <span class="summary_desc"><div class='inline'><p>Returns the URL for the logo image of this game.</p>
504
+ </div></span>
505
+
506
+ </li>
507
+
508
+
509
+ <li class="public ">
510
+ <span class="summary_signature">
511
+
512
+ <a href="#player_count-instance_method" title="#player_count (instance method)">- (Fixnum) <strong>player_count</strong> </a>
513
+
514
+
515
+
516
+ </span>
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+ <span class="summary_desc"><div class='inline'><p>Returns the overall number of players currently playing this game.</p>
527
+ </div></span>
528
+
529
+ </li>
530
+
531
+
532
+ <li class="public ">
533
+ <span class="summary_signature">
534
+
535
+ <a href="#store_url-instance_method" title="#store_url (instance method)">- (String) <strong>store_url</strong> </a>
536
+
537
+
538
+
539
+ </span>
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+ <span class="summary_desc"><div class='inline'><p>Returns the URL of this game&#39;s page in the Steam Store.</p>
550
+ </div></span>
551
+
552
+ </li>
553
+
554
+
555
+ <li class="public ">
556
+ <span class="summary_signature">
557
+
558
+ <a href="#uptodate%3F-instance_method" title="#uptodate? (instance method)">- (Boolean) <strong>uptodate?</strong>(version) </a>
559
+
560
+
561
+
562
+ </span>
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+ <span class="summary_desc"><div class='inline'><p>Returns whether the given version of this game is up-to-date.</p>
573
+ </div></span>
574
+
575
+ </li>
576
+
577
+
578
+ <li class="public ">
579
+ <span class="summary_signature">
580
+
581
+ <a href="#user_stats-instance_method" title="#user_stats (instance method)">- (GameStats) <strong>user_stats</strong>(steam_id) </a>
582
+
583
+
584
+
585
+ </span>
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+ <span class="summary_desc"><div class='inline'><p>Creates a stats object for the given user and this game.</p>
596
+ </div></span>
597
+
598
+ </li>
599
+
600
+
601
+ </ul>
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Cacheable.html" title="Cacheable (module)">Cacheable</a></span></h3>
614
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#cache-instance_method" title="Cacheable#cache (method)">#cache</a></span>, <span class='object_link'><a href="Cacheable.html#cache_id_value-instance_method" title="Cacheable#cache_id_value (method)">#cache_id_value</a></span>, <span class='object_link'><a href="Cacheable.html#cache_ids-instance_method" title="Cacheable#cache_ids (method)">#cache_ids</a></span>, <span class='object_link'><a href="Cacheable.html#cached_instance-instance_method" title="Cacheable#cached_instance (method)">#cached_instance</a></span>, <span class='object_link'><a href="Cacheable.html#fetch-instance_method" title="Cacheable#fetch (method)">#fetch</a></span>, <span class='object_link'><a href="Cacheable.html#fetched%3F-instance_method" title="Cacheable#fetched? (method)">#fetched?</a></span>, <span class='object_link'><a href="Cacheable.html#included-class_method" title="Cacheable.included (method)">included</a></span></p>
615
+ <div id="constructor_details" class="method_details_list">
616
+ <h2>Constructor Details</h2>
617
+
618
+ <div class="method_details first">
619
+ <h3 class="signature first" id="initialize-instance_method">
620
+
621
+ - (<tt><span class='object_link'><a href="" title="SteamGame (class)">SteamGame</a></span></tt>) <strong>initialize</strong>(app_id, game_data) <span class="extras">(private)</span>
622
+
623
+
624
+
625
+
626
+
627
+ </h3><div class="docstring">
628
+ <div class="discussion">
629
+
630
+ <div class="note notetag">
631
+ <strong>Note:</strong>
632
+ <div class='inline'><p>The real constructor of <code>SteamGame</code> is <span class='object_link'><a href="#new-class_method" title="SteamGame.new (method)">new</a></span></p>
633
+ </div>
634
+ </div>
635
+
636
+ <p>Creates a new instance of a game with the given data and caches it</p>
637
+
638
+
639
+ </div>
640
+ </div>
641
+ <div class="tags">
642
+ <p class="tag_title">Parameters:</p>
643
+ <ul class="param">
644
+
645
+ <li>
646
+
647
+ <span class='name'>app_id</span>
648
+
649
+
650
+ <span class='type'>(<tt>Fixnum</tt>)</span>
651
+
652
+
653
+
654
+ &mdash;
655
+ <div class='inline'><p>The application ID of the game</p>
656
+ </div>
657
+
658
+ </li>
659
+
660
+ <li>
661
+
662
+ <span class='name'>game_data</span>
663
+
664
+
665
+ <span class='type'>(<tt>Hash&lt;String, Object&gt;</tt>)</span>
666
+
667
+
668
+
669
+ &mdash;
670
+ <div class='inline'><p>The XML data of the game</p>
671
+ </div>
672
+
673
+ </li>
674
+
675
+ </ul>
676
+
677
+
678
+ </div><table class="source_code">
679
+ <tr>
680
+ <td>
681
+ <pre class="lines">
682
+
683
+
684
+ 173
685
+ 174
686
+ 175
687
+ 176
688
+ 177
689
+ 178
690
+ 179
691
+ 180
692
+ 181
693
+ 182
694
+ 183
695
+ 184
696
+ 185
697
+ 186
698
+ 187
699
+ 188
700
+ 189
701
+ 190
702
+ 191</pre>
703
+ </td>
704
+ <td>
705
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 173</span>
706
+
707
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='rparen token'>)</span>
708
+ <span class='rubyid_@app_id ivar id'>@app_id</span> <span class='assign token'>=</span> <span class='rubyid_app_id identifier id'>app_id</span>
709
+
710
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'name'</span>
711
+ <span class='rubyid_hash identifier id'>hash</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'logo'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span> <span class='dregexp node'>/\/#{app_id}\/([0-9a-f]+).jpg/</span>
712
+ <span class='rubyid_@logo_hash ivar id'>@logo_hash</span> <span class='assign token'>=</span> <span class='rubyid_hash identifier id'>hash</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_hash identifier id'>hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
713
+ <span class='rubyid_@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'name'</span><span class='rbrack token'>]</span>
714
+
715
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'globalStatsLink'</span>
716
+ <span class='rubyid_@short_name ivar id'>@short_name</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'globalStatsLink'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span><span class='lparen token'>(</span><span class='regexp val'>/http:\/\/steamcommunity.com\/stats\/([^?\/]+)\/achievements\//</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_downcase identifier id'>downcase</span>
717
+ <span class='rubyid_end end kw'>end</span>
718
+ <span class='rubyid_else else kw'>else</span>
719
+ <span class='rubyid_@icon_url ivar id'>@icon_url</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'gameIcon'</span><span class='rbrack token'>]</span>
720
+ <span class='rubyid_@logo_hash ivar id'>@logo_hash</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'gameLogo'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span><span class='lparen token'>(</span><span class='dregexp node'>/\/#{app_id}\/([0-9a-f]+).jpg/</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span>
721
+ <span class='rubyid_@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'gameName'</span><span class='rbrack token'>]</span>
722
+ <span class='rubyid_@short_name ivar id'>@short_name</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'gameFriendlyName'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_downcase identifier id'>downcase</span>
723
+ <span class='rubyid_@short_name ivar id'>@short_name</span> <span class='assign token'>=</span> <span class='rubyid_@app_id ivar id'>@app_id</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@short_name ivar id'>@short_name</span> <span class='eq op'>==</span> <span class='rubyid_@app_id ivar id'>@app_id</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span>
724
+ <span class='rubyid_end end kw'>end</span>
725
+ <span class='rubyid_end end kw'>end</span>
726
+ </pre>
727
+ </td>
728
+ </tr>
729
+ </table>
730
+ </div>
731
+
732
+ </div>
733
+
734
+ <div id="instance_attr_details" class="attr_details">
735
+ <h2>Instance Attribute Details</h2>
736
+
737
+
738
+ <span id=""></span>
739
+ <div class="method_details first">
740
+ <h3 class="signature first" id="app_id-instance_method">
741
+
742
+ - (<tt>Fixnum</tt>) <strong>app_id</strong> <span class="extras">(readonly)</span>
743
+
744
+
745
+
746
+
747
+
748
+ </h3><div class="docstring">
749
+ <div class="discussion">
750
+ <p>Returns the Steam application ID of this game</p>
751
+
752
+
753
+ </div>
754
+ </div>
755
+ <div class="tags">
756
+
757
+ <p class="tag_title">Returns:</p>
758
+ <ul class="return">
759
+
760
+ <li>
761
+
762
+
763
+ <span class='type'>(<tt>Fixnum</tt>)</span>
764
+
765
+
766
+
767
+ &mdash;
768
+ <div class='inline'><p>The Steam application ID of this game</p>
769
+ </div>
770
+
771
+ </li>
772
+
773
+ </ul>
774
+
775
+ </div><table class="source_code">
776
+ <tr>
777
+ <td>
778
+ <pre class="lines">
779
+
780
+
781
+ 22
782
+ 23
783
+ 24</pre>
784
+ </td>
785
+ <td>
786
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 22</span>
787
+
788
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_app_id identifier id'>app_id</span>
789
+ <span class='rubyid_@app_id ivar id'>@app_id</span>
790
+ <span class='rubyid_end end kw'>end</span>
791
+ </pre>
792
+ </td>
793
+ </tr>
794
+ </table>
795
+ </div>
796
+
797
+
798
+ <span id=""></span>
799
+ <div class="method_details ">
800
+ <h3 class="signature " id="icon_url-instance_method">
801
+
802
+ - (<tt>String</tt>) <strong>icon_url</strong> <span class="extras">(readonly)</span>
803
+
804
+
805
+
806
+
807
+
808
+ </h3><div class="docstring">
809
+ <div class="discussion">
810
+ <p>Returns the URL for the icon image of this game</p>
811
+
812
+
813
+ </div>
814
+ </div>
815
+ <div class="tags">
816
+
817
+ <p class="tag_title">Returns:</p>
818
+ <ul class="return">
819
+
820
+ <li>
821
+
822
+
823
+ <span class='type'>(<tt>String</tt>)</span>
824
+
825
+
826
+
827
+ &mdash;
828
+ <div class='inline'><p>The URL for the game icon</p>
829
+ </div>
830
+
831
+ </li>
832
+
833
+ </ul>
834
+
835
+ </div><table class="source_code">
836
+ <tr>
837
+ <td>
838
+ <pre class="lines">
839
+
840
+
841
+ 27
842
+ 28
843
+ 29</pre>
844
+ </td>
845
+ <td>
846
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 27</span>
847
+
848
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_icon_url identifier id'>icon_url</span>
849
+ <span class='rubyid_@icon_url ivar id'>@icon_url</span>
850
+ <span class='rubyid_end end kw'>end</span>
851
+ </pre>
852
+ </td>
853
+ </tr>
854
+ </table>
855
+ </div>
856
+
857
+
858
+ <span id=""></span>
859
+ <div class="method_details ">
860
+ <h3 class="signature " id="name-instance_method">
861
+
862
+ - (<tt>String</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
863
+
864
+
865
+
866
+
867
+
868
+ </h3><div class="docstring">
869
+ <div class="discussion">
870
+ <p>Returns the full name of this game</p>
871
+
872
+
873
+ </div>
874
+ </div>
875
+ <div class="tags">
876
+
877
+ <p class="tag_title">Returns:</p>
878
+ <ul class="return">
879
+
880
+ <li>
881
+
882
+
883
+ <span class='type'>(<tt>String</tt>)</span>
884
+
885
+
886
+
887
+ &mdash;
888
+ <div class='inline'><p>The full name of this game</p>
889
+ </div>
890
+
891
+ </li>
892
+
893
+ </ul>
894
+
895
+ </div><table class="source_code">
896
+ <tr>
897
+ <td>
898
+ <pre class="lines">
899
+
900
+
901
+ 32
902
+ 33
903
+ 34</pre>
904
+ </td>
905
+ <td>
906
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 32</span>
907
+
908
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_name identifier id'>name</span>
909
+ <span class='rubyid_@name ivar id'>@name</span>
910
+ <span class='rubyid_end end kw'>end</span>
911
+ </pre>
912
+ </td>
913
+ </tr>
914
+ </table>
915
+ </div>
916
+
917
+
918
+ <span id=""></span>
919
+ <div class="method_details ">
920
+ <h3 class="signature " id="short_name-instance_method">
921
+
922
+ - (<tt>String</tt>) <strong>short_name</strong> <span class="extras">(readonly)</span>
923
+
924
+
925
+
926
+
927
+
928
+ </h3><div class="docstring">
929
+ <div class="discussion">
930
+ <p>Returns the short name of this game (also known as &quot;friendly name&quot;)</p>
931
+
932
+
933
+ </div>
934
+ </div>
935
+ <div class="tags">
936
+
937
+ <p class="tag_title">Returns:</p>
938
+ <ul class="return">
939
+
940
+ <li>
941
+
942
+
943
+ <span class='type'>(<tt>String</tt>)</span>
944
+
945
+
946
+
947
+ &mdash;
948
+ <div class='inline'><p>The short name of this game</p>
949
+ </div>
950
+
951
+ </li>
952
+
953
+ </ul>
954
+
955
+ </div><table class="source_code">
956
+ <tr>
957
+ <td>
958
+ <pre class="lines">
959
+
960
+
961
+ 37
962
+ 38
963
+ 39</pre>
964
+ </td>
965
+ <td>
966
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 37</span>
967
+
968
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_short_name identifier id'>short_name</span>
969
+ <span class='rubyid_@short_name ivar id'>@short_name</span>
970
+ <span class='rubyid_end end kw'>end</span>
971
+ </pre>
972
+ </td>
973
+ </tr>
974
+ </table>
975
+ </div>
976
+
977
+ </div>
978
+
979
+
980
+ <div id="class_method_details" class="method_details_list">
981
+ <h2>Class Method Details</h2>
982
+
983
+
984
+ <div class="method_details first">
985
+ <h3 class="signature first" id="check_steam_inf-class_method">
986
+
987
+ + (<tt>Boolean</tt>) <strong>check_steam_inf</strong>(path)
988
+
989
+
990
+
991
+
992
+
993
+ </h3><div class="docstring">
994
+ <div class="discussion">
995
+ <p>Checks if a game is up-to-date by reading information from a <code>steam.inf</code>
996
+ file and comparing it using the Web API</p>
997
+
998
+
999
+ </div>
1000
+ </div>
1001
+ <div class="tags">
1002
+ <p class="tag_title">Parameters:</p>
1003
+ <ul class="param">
1004
+
1005
+ <li>
1006
+
1007
+ <span class='name'>path</span>
1008
+
1009
+
1010
+ <span class='type'>(<tt>String</tt>)</span>
1011
+
1012
+
1013
+
1014
+ &mdash;
1015
+ <div class='inline'><p>The file system path of the <code>steam.inf</code> file</p>
1016
+ </div>
1017
+
1018
+ </li>
1019
+
1020
+ </ul>
1021
+
1022
+ <p class="tag_title">Returns:</p>
1023
+ <ul class="return">
1024
+
1025
+ <li>
1026
+
1027
+
1028
+ <span class='type'>(<tt>Boolean</tt>)</span>
1029
+
1030
+
1031
+
1032
+ &mdash;
1033
+ <div class='inline'><p><code>true</code> if the game is up-to-date</p>
1034
+ </div>
1035
+
1036
+ </li>
1037
+
1038
+ </ul>
1039
+
1040
+ </div><table class="source_code">
1041
+ <tr>
1042
+ <td>
1043
+ <pre class="lines">
1044
+
1045
+
1046
+ 44
1047
+ 45
1048
+ 46
1049
+ 47
1050
+ 48
1051
+ 49
1052
+ 50
1053
+ 51
1054
+ 52
1055
+ 53</pre>
1056
+ </td>
1057
+ <td>
1058
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 44</span>
1059
+
1060
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_check_steam_inf identifier id'>check_steam_inf</span><span class='lparen token'>(</span><span class='rubyid_path identifier id'>path</span><span class='rparen token'>)</span>
1061
+ <span class='rubyid_steam_inf identifier id'>steam_inf</span> <span class='assign token'>=</span> <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_read identifier id'>read</span> <span class='rubyid_path identifier id'>path</span>
1062
+ <span class='rubyid_begin begin kw'>begin</span>
1063
+ <span class='rubyid_app_id identifier id'>app_id</span> <span class='assign token'>=</span> <span class='rubyid_steam_inf identifier id'>steam_inf</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span><span class='lparen token'>(</span><span class='regexp val'>/^\s*appID=(\d+)\s*$/i</span><span class='rubyid_m identifier id'>m</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1064
+ <span class='rubyid_version identifier id'>version</span> <span class='assign token'>=</span> <span class='rubyid_steam_inf identifier id'>steam_inf</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span><span class='lparen token'>(</span><span class='regexp val'>/^\s*PatchVersion=([\d\.]+)\s*$/i</span><span class='rubyid_m identifier id'>m</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='string val'>'.'</span><span class='comma token'>,</span> <span class='string val'>''</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
1065
+ <span class='rubyid_rescue rescue kw'>rescue</span>
1066
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span> <span class='dstring node'>&quot;The steam.inf file at \&quot;#{path}\&quot; is invalid.&quot;</span>
1067
+ <span class='rubyid_end end kw'>end</span>
1068
+ <span class='rubyid_uptodate? fid id'>uptodate?</span> <span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='rubyid_version identifier id'>version</span>
1069
+ <span class='rubyid_end end kw'>end</span>
1070
+ </pre>
1071
+ </td>
1072
+ </tr>
1073
+ </table>
1074
+ </div>
1075
+
1076
+ <div class="method_details ">
1077
+ <h3 class="signature " id="new-class_method">
1078
+
1079
+ + (<tt>Object</tt>) <strong>new</strong>(app_id, game_data = nil)
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+ </h3><div class="docstring">
1086
+ <div class="discussion">
1087
+ <p>Creates a new instance of a game with the given data and caches it</p>
1088
+
1089
+
1090
+ </div>
1091
+ </div>
1092
+ <div class="tags">
1093
+ <p class="tag_title">Parameters:</p>
1094
+ <ul class="param">
1095
+
1096
+ <li>
1097
+
1098
+ <span class='name'>app_id</span>
1099
+
1100
+
1101
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1102
+
1103
+
1104
+
1105
+ &mdash;
1106
+ <div class='inline'><p>The application ID of the game</p>
1107
+ </div>
1108
+
1109
+ </li>
1110
+
1111
+ <li>
1112
+
1113
+ <span class='name'>game_data</span>
1114
+
1115
+
1116
+ <span class='type'>(<tt>Hash&lt;String, Object&gt;</tt>)</span>
1117
+
1118
+
1119
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1120
+
1121
+
1122
+ &mdash;
1123
+ <div class='inline'><p>The XML data of the game</p>
1124
+ </div>
1125
+
1126
+ </li>
1127
+
1128
+ </ul>
1129
+
1130
+
1131
+ </div><table class="source_code">
1132
+ <tr>
1133
+ <td>
1134
+ <pre class="lines">
1135
+
1136
+
1137
+ 59
1138
+ 60
1139
+ 61
1140
+ 62
1141
+ 63
1142
+ 64
1143
+ 65
1144
+ 66
1145
+ 67</pre>
1146
+ </td>
1147
+ <td>
1148
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 59</span>
1149
+
1150
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='rubyid_game_data identifier id'>game_data</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
1151
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_cached? fid id'>cached?</span> <span class='rubyid_app_id identifier id'>app_id</span>
1152
+ <span class='rubyid_class_variable_get identifier id'>class_variable_get</span><span class='lparen token'>(</span><span class='symbol val'>:@@cache</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span>
1153
+ <span class='rubyid_else else kw'>else</span>
1154
+ <span class='rubyid_game identifier id'>game</span> <span class='assign token'>=</span> <span class='rubyid_SteamGame constant id'>SteamGame</span><span class='dot token'>.</span><span class='rubyid_allocate identifier id'>allocate</span>
1155
+ <span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span> <span class='symbol val'>:initialize</span><span class='comma token'>,</span> <span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='rubyid_game_data identifier id'>game_data</span>
1156
+ <span class='rubyid_game identifier id'>game</span>
1157
+ <span class='rubyid_end end kw'>end</span>
1158
+ <span class='rubyid_end end kw'>end</span>
1159
+ </pre>
1160
+ </td>
1161
+ </tr>
1162
+ </table>
1163
+ </div>
1164
+
1165
+ <div class="method_details ">
1166
+ <h3 class="signature " id="uptodate?-class_method">
1167
+
1168
+ + (<tt>Boolean</tt>) <strong>uptodate?</strong>(app_id, version)
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+ </h3><div class="docstring">
1175
+ <div class="discussion">
1176
+ <p>Returns whether the given version of the game with the given application ID
1177
+ is up-to-date</p>
1178
+
1179
+
1180
+ </div>
1181
+ </div>
1182
+ <div class="tags">
1183
+ <p class="tag_title">Parameters:</p>
1184
+ <ul class="param">
1185
+
1186
+ <li>
1187
+
1188
+ <span class='name'>app_id</span>
1189
+
1190
+
1191
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1192
+
1193
+
1194
+
1195
+ &mdash;
1196
+ <div class='inline'><p>The application ID of the game to check</p>
1197
+ </div>
1198
+
1199
+ </li>
1200
+
1201
+ <li>
1202
+
1203
+ <span class='name'>version</span>
1204
+
1205
+
1206
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1207
+
1208
+
1209
+
1210
+ &mdash;
1211
+ <div class='inline'><p>The version to check against the Web API</p>
1212
+ </div>
1213
+
1214
+ </li>
1215
+
1216
+ </ul>
1217
+
1218
+ <p class="tag_title">Returns:</p>
1219
+ <ul class="return">
1220
+
1221
+ <li>
1222
+
1223
+
1224
+ <span class='type'>(<tt>Boolean</tt>)</span>
1225
+
1226
+
1227
+
1228
+ &mdash;
1229
+ <div class='inline'><p><code>true</code> if the given version is up-to-date</p>
1230
+ </div>
1231
+
1232
+ </li>
1233
+
1234
+ </ul>
1235
+ <p class="tag_title">Raises:</p>
1236
+ <ul class="raise">
1237
+
1238
+ <li>
1239
+
1240
+
1241
+ <span class='type'>(<tt><span class='object_link'><a href="SteamCondenserError.html" title="SteamCondenserError (class)">SteamCondenserError</a></span></tt>)</span>
1242
+
1243
+
1244
+
1245
+ </li>
1246
+
1247
+ </ul>
1248
+
1249
+ </div><table class="source_code">
1250
+ <tr>
1251
+ <td>
1252
+ <pre class="lines">
1253
+
1254
+
1255
+ 75
1256
+ 76
1257
+ 77
1258
+ 78
1259
+ 79
1260
+ 80
1261
+ 81</pre>
1262
+ </td>
1263
+ <td>
1264
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 75</span>
1265
+
1266
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_uptodate? fid id'>uptodate?</span><span class='lparen token'>(</span><span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='rubyid_version identifier id'>version</span><span class='rparen token'>)</span>
1267
+ <span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='symbol val'>:appid</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='symbol val'>:version</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_version identifier id'>version</span> <span class='rbrace token'>}</span>
1268
+ <span class='rubyid_result identifier id'>result</span> <span class='assign token'>=</span> <span class='rubyid_WebApi constant id'>WebApi</span><span class='dot token'>.</span><span class='rubyid_json identifier id'>json</span> <span class='string val'>'ISteamApps'</span><span class='comma token'>,</span> <span class='string val'>'UpToDateCheck'</span><span class='comma token'>,</span> <span class='integer val'>1</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span>
1269
+ <span class='rubyid_result identifier id'>result</span> <span class='assign token'>=</span> <span class='rubyid_MultiJson constant id'>MultiJson</span><span class='dot token'>.</span><span class='rubyid_load identifier id'>load</span><span class='lparen token'>(</span><span class='rubyid_result identifier id'>result</span><span class='comma token'>,</span> <span class='lbrace token'>{</span> <span class='symbol val'>:symbolize_keys</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='lbrack token'>[</span><span class='symbol val'>:response</span><span class='rbrack token'>]</span>
1270
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span> <span class='rubyid_result identifier id'>result</span><span class='lbrack token'>[</span><span class='symbol val'>:error</span><span class='rbrack token'>]</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_result identifier id'>result</span><span class='lbrack token'>[</span><span class='symbol val'>:success</span><span class='rbrack token'>]</span>
1271
+ <span class='rubyid_result identifier id'>result</span><span class='lbrack token'>[</span><span class='symbol val'>:up_to_date</span><span class='rbrack token'>]</span>
1272
+ <span class='rubyid_end end kw'>end</span>
1273
+ </pre>
1274
+ </td>
1275
+ </tr>
1276
+ </table>
1277
+ </div>
1278
+
1279
+ </div>
1280
+
1281
+ <div id="instance_method_details" class="method_details_list">
1282
+ <h2>Instance Method Details</h2>
1283
+
1284
+
1285
+ <div class="method_details first">
1286
+ <h3 class="signature first" id="has_stats?-instance_method">
1287
+
1288
+ - (<tt>Boolean</tt>) <strong>has_stats?</strong>
1289
+
1290
+
1291
+
1292
+
1293
+
1294
+ </h3><div class="docstring">
1295
+ <div class="discussion">
1296
+ <p>Returns whether this game has statistics available</p>
1297
+
1298
+
1299
+ </div>
1300
+ </div>
1301
+ <div class="tags">
1302
+
1303
+ <p class="tag_title">Returns:</p>
1304
+ <ul class="return">
1305
+
1306
+ <li>
1307
+
1308
+
1309
+ <span class='type'>(<tt>Boolean</tt>)</span>
1310
+
1311
+
1312
+
1313
+ &mdash;
1314
+ <div class='inline'><p><code>true</code> if this game has stats</p>
1315
+ </div>
1316
+
1317
+ </li>
1318
+
1319
+ </ul>
1320
+
1321
+ </div><table class="source_code">
1322
+ <tr>
1323
+ <td>
1324
+ <pre class="lines">
1325
+
1326
+
1327
+ 96
1328
+ 97
1329
+ 98</pre>
1330
+ </td>
1331
+ <td>
1332
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 96</span>
1333
+
1334
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_has_stats? fid id'>has_stats?</span>
1335
+ <span class='notop op'>!</span><span class='rubyid_@short_name ivar id'>@short_name</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1336
+ <span class='rubyid_end end kw'>end</span>
1337
+ </pre>
1338
+ </td>
1339
+ </tr>
1340
+ </table>
1341
+ </div>
1342
+
1343
+ <div class="method_details ">
1344
+ <h3 class="signature " id="id-instance_method">
1345
+
1346
+ - (<tt>Fixnum</tt>, <tt>String</tt>) <strong>id</strong>
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ </h3><div class="docstring">
1353
+ <div class="discussion">
1354
+ <p>Returns a unique identifier for this game</p>
1355
+
1356
+ <p>This is either the numeric application ID or the unique short name</p>
1357
+
1358
+
1359
+ </div>
1360
+ </div>
1361
+ <div class="tags">
1362
+
1363
+ <p class="tag_title">Returns:</p>
1364
+ <ul class="return">
1365
+
1366
+ <li>
1367
+
1368
+
1369
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
1370
+
1371
+
1372
+
1373
+ &mdash;
1374
+ <div class='inline'><p>The application ID or short name of the game</p>
1375
+ </div>
1376
+
1377
+ </li>
1378
+
1379
+ </ul>
1380
+
1381
+ </div><table class="source_code">
1382
+ <tr>
1383
+ <td>
1384
+ <pre class="lines">
1385
+
1386
+
1387
+ 105
1388
+ 106
1389
+ 107</pre>
1390
+ </td>
1391
+ <td>
1392
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 105</span>
1393
+
1394
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_id identifier id'>id</span>
1395
+ <span class='rubyid_@short_name ivar id'>@short_name</span> <span class='eq op'>==</span> <span class='rubyid_@app_id ivar id'>@app_id</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span> <span class='integer val'>? </span><span class='rubyid_@app_id ivar id'>@app_id</span> <span class='colon op'>:</span> <span class='rubyid_@short_name ivar id'>@short_name</span>
1396
+ <span class='rubyid_end end kw'>end</span>
1397
+ </pre>
1398
+ </td>
1399
+ </tr>
1400
+ </table>
1401
+ </div>
1402
+
1403
+ <div class="method_details ">
1404
+ <h3 class="signature " id="leaderboard-instance_method">
1405
+
1406
+ - (<tt><span class='object_link'><a href="GameLeaderboard.html" title="GameLeaderboard (class)">GameLeaderboard</a></span></tt>) <strong>leaderboard</strong>(id)
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+ </h3><div class="docstring">
1413
+ <div class="discussion">
1414
+ <p>Returns the leaderboard for this game and the given leaderboard ID or name</p>
1415
+
1416
+
1417
+ </div>
1418
+ </div>
1419
+ <div class="tags">
1420
+ <p class="tag_title">Parameters:</p>
1421
+ <ul class="param">
1422
+
1423
+ <li>
1424
+
1425
+ <span class='name'>id</span>
1426
+
1427
+
1428
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
1429
+
1430
+
1431
+
1432
+ &mdash;
1433
+ <div class='inline'><p>The ID or name of the leaderboard to return</p>
1434
+ </div>
1435
+
1436
+ </li>
1437
+
1438
+ </ul>
1439
+
1440
+ <p class="tag_title">Returns:</p>
1441
+ <ul class="return">
1442
+
1443
+ <li>
1444
+
1445
+
1446
+ <span class='type'>(<tt><span class='object_link'><a href="GameLeaderboard.html" title="GameLeaderboard (class)">GameLeaderboard</a></span></tt>)</span>
1447
+
1448
+
1449
+
1450
+ &mdash;
1451
+ <div class='inline'><p>The matching leaderboard if available</p>
1452
+ </div>
1453
+
1454
+ </li>
1455
+
1456
+ </ul>
1457
+
1458
+ </div><table class="source_code">
1459
+ <tr>
1460
+ <td>
1461
+ <pre class="lines">
1462
+
1463
+
1464
+ 113
1465
+ 114
1466
+ 115</pre>
1467
+ </td>
1468
+ <td>
1469
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 113</span>
1470
+
1471
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_leaderboard identifier id'>leaderboard</span><span class='lparen token'>(</span><span class='rubyid_id identifier id'>id</span><span class='rparen token'>)</span>
1472
+ <span class='rubyid_GameLeaderboard constant id'>GameLeaderboard</span><span class='dot token'>.</span><span class='rubyid_leaderboard identifier id'>leaderboard</span> <span class='rubyid_@short_name ivar id'>@short_name</span><span class='comma token'>,</span> <span class='rubyid_id identifier id'>id</span>
1473
+ <span class='rubyid_end end kw'>end</span>
1474
+ </pre>
1475
+ </td>
1476
+ </tr>
1477
+ </table>
1478
+ </div>
1479
+
1480
+ <div class="method_details ">
1481
+ <h3 class="signature " id="leaderboards-instance_method">
1482
+
1483
+ - (<tt>Array&lt;<span class='object_link'><a href="GameLeaderboard.html" title="GameLeaderboard (class)">GameLeaderboard</a></span>&gt;</tt>) <strong>leaderboards</strong>
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+ </h3><div class="docstring">
1490
+ <div class="discussion">
1491
+ <p>Returns an array containing all of this game&#39;s leaderboards</p>
1492
+
1493
+
1494
+ </div>
1495
+ </div>
1496
+ <div class="tags">
1497
+
1498
+ <p class="tag_title">Returns:</p>
1499
+ <ul class="return">
1500
+
1501
+ <li>
1502
+
1503
+
1504
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="GameLeaderboard.html" title="GameLeaderboard (class)">GameLeaderboard</a></span>&gt;</tt>)</span>
1505
+
1506
+
1507
+
1508
+ &mdash;
1509
+ <div class='inline'><p>The leaderboards for this game</p>
1510
+ </div>
1511
+
1512
+ </li>
1513
+
1514
+ </ul>
1515
+
1516
+ </div><table class="source_code">
1517
+ <tr>
1518
+ <td>
1519
+ <pre class="lines">
1520
+
1521
+
1522
+ 120
1523
+ 121
1524
+ 122</pre>
1525
+ </td>
1526
+ <td>
1527
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 120</span>
1528
+
1529
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_leaderboards identifier id'>leaderboards</span>
1530
+ <span class='rubyid_GameLeaderboard constant id'>GameLeaderboard</span><span class='dot token'>.</span><span class='rubyid_leaderboards identifier id'>leaderboards</span> <span class='rubyid_@short_name ivar id'>@short_name</span>
1531
+ <span class='rubyid_end end kw'>end</span>
1532
+ </pre>
1533
+ </td>
1534
+ </tr>
1535
+ </table>
1536
+ </div>
1537
+
1538
+ <div class="method_details ">
1539
+ <h3 class="signature " id="logo_thumbnail_url-instance_method">
1540
+
1541
+ - (<tt>String</tt>) <strong>logo_thumbnail_url</strong>
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+ </h3><div class="docstring">
1548
+ <div class="discussion">
1549
+ <p>Returns the URL for the logo thumbnail image of this game</p>
1550
+
1551
+
1552
+ </div>
1553
+ </div>
1554
+ <div class="tags">
1555
+
1556
+ <p class="tag_title">Returns:</p>
1557
+ <ul class="return">
1558
+
1559
+ <li>
1560
+
1561
+
1562
+ <span class='type'>(<tt>String</tt>)</span>
1563
+
1564
+
1565
+
1566
+ &mdash;
1567
+ <div class='inline'><p>The URL for the game logo thumbnail</p>
1568
+ </div>
1569
+
1570
+ </li>
1571
+
1572
+ </ul>
1573
+
1574
+ </div><table class="source_code">
1575
+ <tr>
1576
+ <td>
1577
+ <pre class="lines">
1578
+
1579
+
1580
+ 135
1581
+ 136
1582
+ 137
1583
+ 138</pre>
1584
+ </td>
1585
+ <td>
1586
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 135</span>
1587
+
1588
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_logo_thumbnail_url identifier id'>logo_thumbnail_url</span>
1589
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@logo_hash ivar id'>@logo_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1590
+ <span class='dstring node'>&quot;http://media.steampowered.com/steamcommunity/public/images/apps/#@app_id/#{@logo_hash}_thumb.jpg&quot;</span>
1591
+ <span class='rubyid_end end kw'>end</span>
1592
+ </pre>
1593
+ </td>
1594
+ </tr>
1595
+ </table>
1596
+ </div>
1597
+
1598
+ <div class="method_details ">
1599
+ <h3 class="signature " id="logo_url-instance_method">
1600
+
1601
+ - (<tt>String</tt>) <strong>logo_url</strong>
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+ </h3><div class="docstring">
1608
+ <div class="discussion">
1609
+ <p>Returns the URL for the logo image of this game</p>
1610
+
1611
+
1612
+ </div>
1613
+ </div>
1614
+ <div class="tags">
1615
+
1616
+ <p class="tag_title">Returns:</p>
1617
+ <ul class="return">
1618
+
1619
+ <li>
1620
+
1621
+
1622
+ <span class='type'>(<tt>String</tt>)</span>
1623
+
1624
+
1625
+
1626
+ &mdash;
1627
+ <div class='inline'><p>The URL for the game logo</p>
1628
+ </div>
1629
+
1630
+ </li>
1631
+
1632
+ </ul>
1633
+
1634
+ </div><table class="source_code">
1635
+ <tr>
1636
+ <td>
1637
+ <pre class="lines">
1638
+
1639
+
1640
+ 127
1641
+ 128
1642
+ 129
1643
+ 130</pre>
1644
+ </td>
1645
+ <td>
1646
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 127</span>
1647
+
1648
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_logo_url identifier id'>logo_url</span>
1649
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@logo_hash ivar id'>@logo_hash</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1650
+ <span class='string val'>&quot;http://media.steampowered.com/steamcommunity/public/images/apps/#@app_id/#@logo_hash.jpg&quot;</span>
1651
+ <span class='rubyid_end end kw'>end</span>
1652
+ </pre>
1653
+ </td>
1654
+ </tr>
1655
+ </table>
1656
+ </div>
1657
+
1658
+ <div class="method_details ">
1659
+ <h3 class="signature " id="player_count-instance_method">
1660
+
1661
+ - (<tt>Fixnum</tt>) <strong>player_count</strong>
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+ </h3><div class="docstring">
1668
+ <div class="discussion">
1669
+ <p>Returns the overall number of players currently playing this game</p>
1670
+
1671
+
1672
+ </div>
1673
+ </div>
1674
+ <div class="tags">
1675
+
1676
+ <p class="tag_title">Returns:</p>
1677
+ <ul class="return">
1678
+
1679
+ <li>
1680
+
1681
+
1682
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1683
+
1684
+
1685
+
1686
+ &mdash;
1687
+ <div class='inline'><p>The number of players playing this game</p>
1688
+ </div>
1689
+
1690
+ </li>
1691
+
1692
+ </ul>
1693
+
1694
+ </div><table class="source_code">
1695
+ <tr>
1696
+ <td>
1697
+ <pre class="lines">
1698
+
1699
+
1700
+ 86
1701
+ 87
1702
+ 88
1703
+ 89
1704
+ 90
1705
+ 91</pre>
1706
+ </td>
1707
+ <td>
1708
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 86</span>
1709
+
1710
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_player_count identifier id'>player_count</span>
1711
+ <span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='symbol val'>:appid</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_@app_id ivar id'>@app_id</span> <span class='rbrace token'>}</span>
1712
+ <span class='rubyid_result identifier id'>result</span> <span class='assign token'>=</span> <span class='rubyid_WebApi constant id'>WebApi</span><span class='dot token'>.</span><span class='rubyid_json identifier id'>json</span> <span class='string val'>'ISteamUserStats'</span><span class='comma token'>,</span> <span class='string val'>'GetNumberOfCurrentPlayers'</span><span class='comma token'>,</span> <span class='integer val'>1</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span>
1713
+ <span class='rubyid_result identifier id'>result</span> <span class='assign token'>=</span> <span class='rubyid_MultiJson constant id'>MultiJson</span><span class='dot token'>.</span><span class='rubyid_load identifier id'>load</span><span class='lparen token'>(</span><span class='rubyid_result identifier id'>result</span><span class='comma token'>,</span> <span class='lbrace token'>{</span> <span class='symbol val'>:symbolize_keys</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='lbrack token'>[</span><span class='symbol val'>:response</span><span class='rbrack token'>]</span>
1714
+ <span class='rubyid_result identifier id'>result</span><span class='lbrack token'>[</span><span class='symbol val'>:player_count</span><span class='rbrack token'>]</span>
1715
+ <span class='rubyid_end end kw'>end</span>
1716
+ </pre>
1717
+ </td>
1718
+ </tr>
1719
+ </table>
1720
+ </div>
1721
+
1722
+ <div class="method_details ">
1723
+ <h3 class="signature " id="store_url-instance_method">
1724
+
1725
+ - (<tt>String</tt>) <strong>store_url</strong>
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+ </h3><div class="docstring">
1732
+ <div class="discussion">
1733
+ <p>Returns the URL of this game&#39;s page in the Steam Store</p>
1734
+
1735
+
1736
+ </div>
1737
+ </div>
1738
+ <div class="tags">
1739
+
1740
+ <p class="tag_title">Returns:</p>
1741
+ <ul class="return">
1742
+
1743
+ <li>
1744
+
1745
+
1746
+ <span class='type'>(<tt>String</tt>)</span>
1747
+
1748
+
1749
+
1750
+ &mdash;
1751
+ <div class='inline'><p>This game&#39;s store page</p>
1752
+ </div>
1753
+
1754
+ </li>
1755
+
1756
+ </ul>
1757
+
1758
+ </div><table class="source_code">
1759
+ <tr>
1760
+ <td>
1761
+ <pre class="lines">
1762
+
1763
+
1764
+ 143
1765
+ 144
1766
+ 145</pre>
1767
+ </td>
1768
+ <td>
1769
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 143</span>
1770
+
1771
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_store_url identifier id'>store_url</span>
1772
+ <span class='string val'>&quot;http://store.steampowered.com/app/#@app_id&quot;</span>
1773
+ <span class='rubyid_end end kw'>end</span>
1774
+ </pre>
1775
+ </td>
1776
+ </tr>
1777
+ </table>
1778
+ </div>
1779
+
1780
+ <div class="method_details ">
1781
+ <h3 class="signature " id="uptodate?-instance_method">
1782
+
1783
+ - (<tt>Boolean</tt>) <strong>uptodate?</strong>(version)
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+ </h3><div class="docstring">
1790
+ <div class="discussion">
1791
+ <p>Returns whether the given version of this game is up-to-date</p>
1792
+
1793
+
1794
+ </div>
1795
+ </div>
1796
+ <div class="tags">
1797
+ <p class="tag_title">Parameters:</p>
1798
+ <ul class="param">
1799
+
1800
+ <li>
1801
+
1802
+ <span class='name'>version</span>
1803
+
1804
+
1805
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1806
+
1807
+
1808
+
1809
+ &mdash;
1810
+ <div class='inline'><p>The version to check against the Web API</p>
1811
+ </div>
1812
+
1813
+ </li>
1814
+
1815
+ </ul>
1816
+
1817
+ <p class="tag_title">Returns:</p>
1818
+ <ul class="return">
1819
+
1820
+ <li>
1821
+
1822
+
1823
+ <span class='type'>(<tt>Boolean</tt>)</span>
1824
+
1825
+
1826
+
1827
+ &mdash;
1828
+ <div class='inline'><p><code>true</code> if the given version is up-to-date</p>
1829
+ </div>
1830
+
1831
+ </li>
1832
+
1833
+ </ul>
1834
+
1835
+ </div><table class="source_code">
1836
+ <tr>
1837
+ <td>
1838
+ <pre class="lines">
1839
+
1840
+
1841
+ 151
1842
+ 152
1843
+ 153</pre>
1844
+ </td>
1845
+ <td>
1846
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 151</span>
1847
+
1848
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_uptodate? fid id'>uptodate?</span><span class='lparen token'>(</span><span class='rubyid_version identifier id'>version</span><span class='rparen token'>)</span>
1849
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_uptodate? fid id'>uptodate?</span> <span class='rubyid_@app_id ivar id'>@app_id</span><span class='comma token'>,</span> <span class='rubyid_version identifier id'>version</span>
1850
+ <span class='rubyid_end end kw'>end</span>
1851
+ </pre>
1852
+ </td>
1853
+ </tr>
1854
+ </table>
1855
+ </div>
1856
+
1857
+ <div class="method_details ">
1858
+ <h3 class="signature " id="user_stats-instance_method">
1859
+
1860
+ - (<tt><span class='object_link'><a href="GameStats.html" title="GameStats (class)">GameStats</a></span></tt>) <strong>user_stats</strong>(steam_id)
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+ </h3><div class="docstring">
1867
+ <div class="discussion">
1868
+ <p>Creates a stats object for the given user and this game</p>
1869
+
1870
+
1871
+ </div>
1872
+ </div>
1873
+ <div class="tags">
1874
+ <p class="tag_title">Parameters:</p>
1875
+ <ul class="param">
1876
+
1877
+ <li>
1878
+
1879
+ <span class='name'>steam_id</span>
1880
+
1881
+
1882
+ <span class='type'>(<tt>String</tt>, <tt>Fixnum</tt>)</span>
1883
+
1884
+
1885
+
1886
+ &mdash;
1887
+ <div class='inline'><p>The custom URL or the 64bit Steam ID of
1888
+ the user</p>
1889
+ </div>
1890
+
1891
+ </li>
1892
+
1893
+ </ul>
1894
+
1895
+ <p class="tag_title">Returns:</p>
1896
+ <ul class="return">
1897
+
1898
+ <li>
1899
+
1900
+
1901
+ <span class='type'>(<tt><span class='object_link'><a href="GameStats.html" title="GameStats (class)">GameStats</a></span></tt>)</span>
1902
+
1903
+
1904
+
1905
+ &mdash;
1906
+ <div class='inline'><p>The stats of this game for the given user</p>
1907
+ </div>
1908
+
1909
+ </li>
1910
+
1911
+ </ul>
1912
+
1913
+ </div><table class="source_code">
1914
+ <tr>
1915
+ <td>
1916
+ <pre class="lines">
1917
+
1918
+
1919
+ 160
1920
+ 161
1921
+ 162
1922
+ 163
1923
+ 164</pre>
1924
+ </td>
1925
+ <td>
1926
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_game.rb', line 160</span>
1927
+
1928
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_user_stats identifier id'>user_stats</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='rparen token'>)</span>
1929
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_has_stats? fid id'>has_stats?</span>
1930
+
1931
+ <span class='rubyid_GameStats constant id'>GameStats</span><span class='dot token'>.</span><span class='rubyid_create_game_stats identifier id'>create_game_stats</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='comma token'>,</span> <span class='rubyid_@short_name ivar id'>@short_name</span>
1932
+ <span class='rubyid_end end kw'>end</span>
1933
+ </pre>
1934
+ </td>
1935
+ </tr>
1936
+ </table>
1937
+ </div>
1938
+
1939
+ </div>
1940
+
1941
+ </div>
1942
+
1943
+ <div id="footer">
1944
+ Generated on Mon Sep 2 07:13:00 2013 by
1945
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1946
+ 0.8.7 (ruby-1.8.7).
1947
+ </div>
1948
+
1949
+ </body>
1950
+ </html>