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,321 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: SteamCondenser::Community::GameClass
8
+
9
+ &mdash; Metior — API Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (G)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../SteamCondenser.html" title="SteamCondenser (module)">SteamCondenser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Community.html" title="SteamCondenser::Community (module)">Community</a></span></span>
36
+ &raquo;
37
+ <span class="title">GameClass</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: SteamCondenser::Community::GameClass
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+ <dt class="r1">Included in:</dt>
81
+ <dd class="r1"><span class='object_link'><a href="DoDSClass.html" title="SteamCondenser::Community::DoDSClass (class)">DoDSClass</a></span>, <span class='object_link'><a href="TF2Class.html" title="SteamCondenser::Community::TF2Class (class)">TF2Class</a></span></dd>
82
+
83
+
84
+
85
+ <dt class="r2 last">Defined in:</dt>
86
+ <dd class="r2 last">lib/steam-condenser/community/game_class.rb</dd>
87
+
88
+ </dl>
89
+ <div class="clear"></div>
90
+
91
+ <h2>Overview</h2><div class="docstring">
92
+ <div class="discussion">
93
+ <p>A module implementing basic functionality for classes representing player
94
+ classes</p>
95
+
96
+
97
+ </div>
98
+ </div>
99
+ <div class="tags">
100
+
101
+ <p class="tag_title">Author:</p>
102
+ <ul class="author">
103
+
104
+ <li>
105
+
106
+
107
+
108
+
109
+
110
+ <div class='inline'><p>Sebastian Staudt</p>
111
+ </div>
112
+
113
+ </li>
114
+
115
+ </ul>
116
+
117
+ </div>
118
+
119
+
120
+
121
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
122
+ <ul class="summary">
123
+
124
+ <li class="public ">
125
+ <span class="summary_signature">
126
+
127
+ <a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
128
+
129
+
130
+
131
+ </span>
132
+
133
+
134
+
135
+
136
+ <span class="note title readonly">readonly</span>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ <span class="summary_desc"><div class='inline'><p>Returns the name of this class.</p>
147
+ </div></span>
148
+
149
+ </li>
150
+
151
+
152
+ <li class="public ">
153
+ <span class="summary_signature">
154
+
155
+ <a href="#play_time-instance_method" title="#play_time (instance method)">- (Fixnum) <strong>play_time</strong> </a>
156
+
157
+
158
+
159
+ </span>
160
+
161
+
162
+
163
+
164
+ <span class="note title readonly">readonly</span>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+ <span class="summary_desc"><div class='inline'><p>Returns the time in minutes the player has played with this class.</p>
175
+ </div></span>
176
+
177
+ </li>
178
+
179
+
180
+ </ul>
181
+
182
+
183
+
184
+
185
+
186
+ <div id="instance_attr_details" class="attr_details">
187
+ <h2>Instance Attribute Details</h2>
188
+
189
+
190
+ <span id=""></span>
191
+ <div class="method_details first">
192
+ <h3 class="signature first" id="name-instance_method">
193
+
194
+ - (<tt>String</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
195
+
196
+
197
+
198
+
199
+
200
+ </h3><div class="docstring">
201
+ <div class="discussion">
202
+ <p>Returns the name of this class</p>
203
+
204
+
205
+ </div>
206
+ </div>
207
+ <div class="tags">
208
+
209
+ <p class="tag_title">Returns:</p>
210
+ <ul class="return">
211
+
212
+ <li>
213
+
214
+
215
+ <span class='type'>(<tt>String</tt>)</span>
216
+
217
+
218
+
219
+ &mdash;
220
+ <div class='inline'><p>The name of this class</p>
221
+ </div>
222
+
223
+ </li>
224
+
225
+ </ul>
226
+
227
+ </div><table class="source_code">
228
+ <tr>
229
+ <td>
230
+ <pre class="lines">
231
+
232
+
233
+ 17
234
+ 18
235
+ 19</pre>
236
+ </td>
237
+ <td>
238
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_class.rb', line 17</span>
239
+
240
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_name identifier id'>name</span>
241
+ <span class='rubyid_@name ivar id'>@name</span>
242
+ <span class='rubyid_end end kw'>end</span>
243
+ </pre>
244
+ </td>
245
+ </tr>
246
+ </table>
247
+ </div>
248
+
249
+
250
+ <span id=""></span>
251
+ <div class="method_details ">
252
+ <h3 class="signature " id="play_time-instance_method">
253
+
254
+ - (<tt>Fixnum</tt>) <strong>play_time</strong> <span class="extras">(readonly)</span>
255
+
256
+
257
+
258
+
259
+
260
+ </h3><div class="docstring">
261
+ <div class="discussion">
262
+ <p>Returns the time in minutes the player has played with this class</p>
263
+
264
+
265
+ </div>
266
+ </div>
267
+ <div class="tags">
268
+
269
+ <p class="tag_title">Returns:</p>
270
+ <ul class="return">
271
+
272
+ <li>
273
+
274
+
275
+ <span class='type'>(<tt>Fixnum</tt>)</span>
276
+
277
+
278
+
279
+ &mdash;
280
+ <div class='inline'><p>The time this class has been played</p>
281
+ </div>
282
+
283
+ </li>
284
+
285
+ </ul>
286
+
287
+ </div><table class="source_code">
288
+ <tr>
289
+ <td>
290
+ <pre class="lines">
291
+
292
+
293
+ 22
294
+ 23
295
+ 24</pre>
296
+ </td>
297
+ <td>
298
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_class.rb', line 22</span>
299
+
300
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_play_time identifier id'>play_time</span>
301
+ <span class='rubyid_@play_time ivar id'>@play_time</span>
302
+ <span class='rubyid_end end kw'>end</span>
303
+ </pre>
304
+ </td>
305
+ </tr>
306
+ </table>
307
+ </div>
308
+
309
+ </div>
310
+
311
+
312
+ </div>
313
+
314
+ <div id="footer">
315
+ Generated on Wed Aug 14 21:47:42 2013 by
316
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
317
+ 0.8.7 (ruby-1.8.7).
318
+ </div>
319
+
320
+ </body>
321
+ </html>
@@ -0,0 +1,1469 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: SteamCondenser::Community::GameInventory
8
+
9
+ &mdash; Metior — API Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (G)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../SteamCondenser.html" title="SteamCondenser (module)">SteamCondenser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Community.html" title="SteamCondenser::Community (module)">Community</a></span></span>
36
+ &raquo;
37
+ <span class="title">GameInventory</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: SteamCondenser::Community::GameInventory
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">SteamCondenser::Community::GameInventory</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="SteamCondenser::Community::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-condenser/community/game_inventory.rb<span class="defines">,<br />
102
+ lib/steam-condenser/community/game_inventory.rb</span>
103
+ </dd>
104
+
105
+ </dl>
106
+ <div class="clear"></div>
107
+
108
+ <h2>Overview</h2><div class="docstring">
109
+ <div class="discussion">
110
+ <p>Provides basic functionality to represent an inventory of player in a game</p>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+ <p class="tag_title">Author:</p>
118
+ <ul class="author">
119
+
120
+ <li>
121
+
122
+
123
+
124
+
125
+
126
+ <div class='inline'><p>Sebastian Staudt</p>
127
+ </div>
128
+
129
+ </li>
130
+
131
+ </ul>
132
+
133
+ </div><div id="subclasses">
134
+ <h2>Direct Known Subclasses</h2>
135
+ <p class="children"><span class='object_link'><a href="Dota2BetaInventory.html" title="SteamCondenser::Community::Dota2BetaInventory (class)">Dota2BetaInventory</a></span>, <span class='object_link'><a href="Dota2Inventory.html" title="SteamCondenser::Community::Dota2Inventory (class)">Dota2Inventory</a></span>, <span class='object_link'><a href="Portal2Inventory.html" title="SteamCondenser::Community::Portal2Inventory (class)">Portal2Inventory</a></span>, <span class='object_link'><a href="TF2BetaInventory.html" title="SteamCondenser::Community::TF2BetaInventory (class)">TF2BetaInventory</a></span>, <span class='object_link'><a href="TF2Inventory.html" title="SteamCondenser::Community::TF2Inventory (class)">TF2Inventory</a></span></p>
136
+ </div>
137
+
138
+ <h2>Constant Summary</h2>
139
+
140
+ <dl class="constants">
141
+
142
+ <dt id="item_class-classvariable" class="">@@item_class =
143
+
144
+ </dt>
145
+ <dd><pre class="code"><span class='rubyid_GameItem constant id'>GameItem</span>
146
+ </pre></dd>
147
+
148
+ <dt id="schema_language-classvariable" class="">@@schema_language =
149
+
150
+ </dt>
151
+ <dd><pre class="code"><span class='string val'>'en'</span>
152
+ </pre></dd>
153
+
154
+ </dl>
155
+
156
+
157
+
158
+
159
+
160
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
161
+ <ul class="summary">
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#app_id-instance_method" title="#app_id (instance method)">- (Fixnum) <strong>app_id</strong> </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+ <span class="note title readonly">readonly</span>
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ <span class="summary_desc"><div class='inline'><p>Returns the application ID of the game this inventory class belongs to.</p>
186
+ </div></span>
187
+
188
+ </li>
189
+
190
+
191
+ <li class="public ">
192
+ <span class="summary_signature">
193
+
194
+ <a href="#items-instance_method" title="#items (instance method)">- (Array&lt;GameItem&gt;) <strong>items</strong> </a>
195
+
196
+
197
+
198
+ </span>
199
+
200
+
201
+
202
+
203
+ <span class="note title readonly">readonly</span>
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+ <span class="summary_desc"><div class='inline'><p>Returns an array of all items in this players inventory.</p>
214
+ </div></span>
215
+
216
+ </li>
217
+
218
+
219
+ <li class="public ">
220
+ <span class="summary_signature">
221
+
222
+ <a href="#preliminary_items-instance_method" title="#preliminary_items (instance method)">- (Array&lt;GameItem&gt;) <strong>preliminary_items</strong> </a>
223
+
224
+
225
+
226
+ </span>
227
+
228
+
229
+
230
+
231
+ <span class="note title readonly">readonly</span>
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ <span class="summary_desc"><div class='inline'><p>Returns an array of all items that this player just found or traded.</p>
242
+ </div></span>
243
+
244
+ </li>
245
+
246
+
247
+ <li class="public ">
248
+ <span class="summary_signature">
249
+
250
+ <a href="#user-instance_method" title="#user (instance method)">- (SteamId) <strong>user</strong> </a>
251
+
252
+
253
+
254
+ </span>
255
+
256
+
257
+
258
+
259
+ <span class="note title readonly">readonly</span>
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+ <span class="summary_desc"><div class='inline'><p>Returns the Steam ID of the player owning this inventory.</p>
270
+ </div></span>
271
+
272
+ </li>
273
+
274
+
275
+ </ul>
276
+
277
+
278
+
279
+
280
+
281
+ <h3 class="inherited">Attributes included from <span class='object_link'><a href="Cacheable.html" title="SteamCondenser::Community::Cacheable (module)">Cacheable</a></span></h3>
282
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#fetch_time-instance_method" title="SteamCondenser::Community::Cacheable#fetch_time (method)">#fetch_time</a></span></p>
283
+
284
+
285
+
286
+ <h2>
287
+ Class Method Summary
288
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
289
+ </h2>
290
+
291
+ <ul class="summary">
292
+
293
+ <li class="public ">
294
+ <span class="summary_signature">
295
+
296
+ <a href="#new-class_method" title="self (class method)">+ (GameInventory) <strong>self</strong>(app_id, steam_id, *args, fetch = true, bypass_cache = false) </a>
297
+
298
+
299
+
300
+ </span>
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <span class="summary_desc"><div class='inline'><p>This is a wrapper around all subclasses of <code>GameInventory</code> so that an instance of correct subclass is returned for a given application ID.</p>
311
+ </div></span>
312
+
313
+ </li>
314
+
315
+
316
+ <li class="public ">
317
+ <span class="summary_signature">
318
+
319
+ <a href="#schema_language%3D-class_method" title="schema_language= (class method)">+ (Object) <strong>schema_language=</strong>(language) </a>
320
+
321
+
322
+
323
+ </span>
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+ <span class="summary_desc"><div class='inline'><p>Sets the language the schema should be fetched in (default is: <code>&#39;en&#39;</code>).</p>
334
+ </div></span>
335
+
336
+ </li>
337
+
338
+
339
+ </ul>
340
+
341
+ <h2>
342
+ Instance Method Summary
343
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
344
+ </h2>
345
+
346
+ <ul class="summary">
347
+
348
+ <li class="public ">
349
+ <span class="summary_signature">
350
+
351
+ <a href="#%5B%5D-instance_method" title="#[] (instance method)">- (GameItem) <strong>[]</strong>(index) </a>
352
+
353
+
354
+
355
+ </span>
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+ <span class="summary_desc"><div class='inline'><p>Returns the item at the given position in the inventory.</p>
366
+ </div></span>
367
+
368
+ </li>
369
+
370
+
371
+ <li class="public ">
372
+ <span class="summary_signature">
373
+
374
+ <a href="#fetch-instance_method" title="#fetch (instance method)">- (Object) <strong>fetch</strong> </a>
375
+
376
+
377
+
378
+ </span>
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+ <span class="summary_desc"><div class='inline'><p>Updates the contents of the inventory using the Steam Web API.</p>
389
+ </div></span>
390
+
391
+ </li>
392
+
393
+
394
+ <li class="public ">
395
+ <span class="summary_signature">
396
+
397
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (GameInventory) <strong>initialize</strong>(app_id, steam_id64, fetch = true, bypass_cache = false) </a>
398
+
399
+
400
+
401
+ </span>
402
+
403
+
404
+ <span class="note title constructor">constructor</span>
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+ <span class="summary_desc"><div class='inline'><p>Creates a new inventory object for the given AppID and SteamID64.</p>
414
+ </div></span>
415
+
416
+ </li>
417
+
418
+
419
+ <li class="public ">
420
+ <span class="summary_signature">
421
+
422
+ <a href="#inspect-instance_method" title="#inspect (instance method)">- (String) <strong>inspect</strong> </a>
423
+
424
+
425
+
426
+ </span>
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+ <span class="summary_desc"><div class='inline'><p>Returns a short, human-readable string representation of this inventory.</p>
437
+ </div></span>
438
+
439
+ </li>
440
+
441
+
442
+ <li class="public ">
443
+ <span class="summary_signature">
444
+
445
+ <a href="#item_schema-instance_method" title="#item_schema (instance method)">- (GameItemSchema) <strong>item_schema</strong> </a>
446
+
447
+
448
+
449
+ </span>
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+ <span class="summary_desc"><div class='inline'><p>Returns the item schema for this inventory.</p>
460
+ </div></span>
461
+
462
+ </li>
463
+
464
+
465
+ <li class="public ">
466
+ <span class="summary_signature">
467
+
468
+ <a href="#size-instance_method" title="#size (instance method)">- (Fixnum) <strong>size</strong> </a>
469
+
470
+
471
+
472
+ </span>
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+ <span class="summary_desc"><div class='inline'><p>Returns the number of items in the user&#39;s inventory.</p>
483
+ </div></span>
484
+
485
+ </li>
486
+
487
+
488
+ </ul>
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Cacheable.html" title="SteamCondenser::Community::Cacheable (module)">Cacheable</a></span></h3>
501
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#cache-instance_method" title="SteamCondenser::Community::Cacheable#cache (method)">#cache</a></span>, <span class='object_link'><a href="Cacheable.html#cache_id_value-instance_method" title="SteamCondenser::Community::Cacheable#cache_id_value (method)">#cache_id_value</a></span>, <span class='object_link'><a href="Cacheable.html#cache_ids-instance_method" title="SteamCondenser::Community::Cacheable#cache_ids (method)">#cache_ids</a></span>, <span class='object_link'><a href="Cacheable.html#cached_instance-instance_method" title="SteamCondenser::Community::Cacheable#cached_instance (method)">#cached_instance</a></span>, <span class='object_link'><a href="Cacheable.html#fetched%3F-instance_method" title="SteamCondenser::Community::Cacheable#fetched? (method)">#fetched?</a></span>, <span class='object_link'><a href="Cacheable.html#included-class_method" title="SteamCondenser::Community::Cacheable.included (method)">included</a></span></p>
502
+ <div id="constructor_details" class="method_details_list">
503
+ <h2>Constructor Details</h2>
504
+
505
+ <div class="method_details first">
506
+ <h3 class="signature first" id="initialize-instance_method">
507
+
508
+ - (<tt><span class='object_link'><a href="" title="SteamCondenser::Community::GameInventory (class)">GameInventory</a></span></tt>) <strong>initialize</strong>(app_id, steam_id64, fetch = true, bypass_cache = false)
509
+
510
+
511
+
512
+
513
+
514
+ </h3><div class="docstring">
515
+ <div class="discussion">
516
+ <p>Creates a new inventory object for the given AppID and SteamID64. This
517
+ calls update to fetch the data and create the item instances contained in
518
+ this players backpack</p>
519
+
520
+
521
+ </div>
522
+ </div>
523
+ <div class="tags">
524
+
525
+
526
+ <p class="tag_title">Parameters:</p>
527
+ <ul class="param">
528
+
529
+ <li>
530
+
531
+ <span class='name'>app_id</span>
532
+
533
+
534
+ <span class='type'>(<tt>Fixnum</tt>)</span>
535
+
536
+
537
+
538
+ &mdash;
539
+ <div class='inline'><p>The application ID of the game</p>
540
+ </div>
541
+
542
+ </li>
543
+
544
+ <li>
545
+
546
+ <span class='name'>steam_id64</span>
547
+
548
+
549
+ <span class='type'>(<tt>Fixnum</tt>)</span>
550
+
551
+
552
+
553
+ &mdash;
554
+ <div class='inline'><p>The 64bit SteamID of the player to get the
555
+ inventory for</p>
556
+ </div>
557
+
558
+ </li>
559
+
560
+ <li>
561
+
562
+ <span class='name'>fetch</span>
563
+
564
+
565
+ <span class='type'>(<tt>Boolean</tt>)</span>
566
+
567
+
568
+
569
+ &mdash;
570
+ <div class='inline'><p>if <code>true</code> the object&#39;s data is fetched after
571
+ creation</p>
572
+ </div>
573
+
574
+ </li>
575
+
576
+ <li>
577
+
578
+ <span class='name'>bypass_cache</span>
579
+
580
+
581
+ <span class='type'>(<tt>Boolean</tt>)</span>
582
+
583
+
584
+
585
+ &mdash;
586
+ <div class='inline'><p>if <code>true</code> the object&#39;s data is fetched again
587
+ even if it has been cached already</p>
588
+ </div>
589
+
590
+ </li>
591
+
592
+ </ul>
593
+
594
+
595
+ </div><table class="source_code">
596
+ <tr>
597
+ <td>
598
+ <pre class="lines">
599
+
600
+
601
+ 112
602
+ 113
603
+ 114
604
+ 115
605
+ 116
606
+ 117
607
+ 118
608
+ 119
609
+ 120
610
+ 121
611
+ 122</pre>
612
+ </td>
613
+ <td>
614
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 112</span>
615
+
616
+ <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_steam_id64 identifier id'>steam_id64</span><span class='rparen token'>)</span>
617
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_steam_id64 identifier id'>steam_id64</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Fixnum constant id'>Fixnum</span>
618
+ <span class='rubyid_steam_id64 identifier id'>steam_id64</span> <span class='assign token'>=</span> <span class='rubyid_SteamId constant id'>SteamId</span><span class='dot token'>.</span><span class='rubyid_resolve_vanity_url identifier id'>resolve_vanity_url</span> <span class='rubyid_steam_id64 identifier id'>steam_id64</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span>
619
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenser constant id'>SteamCondenser</span><span class='colon2 op'>::</span><span class='rubyid_Error constant id'>Error</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='string val'>'User not found'</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_steam_id64 identifier id'>steam_id64</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
620
+ <span class='rubyid_end end kw'>end</span>
621
+
622
+ <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>
623
+ <span class='rubyid_@items ivar id'>@items</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
624
+ <span class='rubyid_@steam_id64 ivar id'>@steam_id64</span> <span class='assign token'>=</span> <span class='rubyid_steam_id64 identifier id'>steam_id64</span>
625
+ <span class='rubyid_@user ivar id'>@user</span> <span class='assign token'>=</span> <span class='rubyid_SteamId constant id'>SteamId</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='rubyid_steam_id64 identifier id'>steam_id64</span><span class='comma token'>,</span> <span class='rubyid_false false kw'>false</span>
626
+ <span class='rubyid_end end kw'>end</span>
627
+ </pre>
628
+ </td>
629
+ </tr>
630
+ </table>
631
+ </div>
632
+
633
+ </div>
634
+
635
+ <div id="instance_attr_details" class="attr_details">
636
+ <h2>Instance Attribute Details</h2>
637
+
638
+
639
+ <span id=""></span>
640
+ <div class="method_details first">
641
+ <h3 class="signature first" id="app_id-instance_method">
642
+
643
+ - (<tt>Fixnum</tt>) <strong>app_id</strong> <span class="extras">(readonly)</span>
644
+
645
+
646
+
647
+
648
+
649
+ </h3><div class="docstring">
650
+ <div class="discussion">
651
+ <p>Returns the application ID of the game this inventory class belongs to</p>
652
+
653
+
654
+ </div>
655
+ </div>
656
+ <div class="tags">
657
+
658
+ <p class="tag_title">Returns:</p>
659
+ <ul class="return">
660
+
661
+ <li>
662
+
663
+
664
+ <span class='type'>(<tt>Fixnum</tt>)</span>
665
+
666
+
667
+
668
+ &mdash;
669
+ <div class='inline'><p>The application ID of the game</p>
670
+ </div>
671
+
672
+ </li>
673
+
674
+ </ul>
675
+
676
+ </div><table class="source_code">
677
+ <tr>
678
+ <td>
679
+ <pre class="lines">
680
+
681
+
682
+ 36
683
+ 37
684
+ 38</pre>
685
+ </td>
686
+ <td>
687
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 36</span>
688
+
689
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_app_id identifier id'>app_id</span>
690
+ <span class='rubyid_@app_id ivar id'>@app_id</span>
691
+ <span class='rubyid_end end kw'>end</span>
692
+ </pre>
693
+ </td>
694
+ </tr>
695
+ </table>
696
+ </div>
697
+
698
+
699
+ <span id=""></span>
700
+ <div class="method_details ">
701
+ <h3 class="signature " id="items-instance_method">
702
+
703
+ - (<tt>Array&lt;<span class='object_link'><a href="GameItem.html" title="SteamCondenser::Community::GameItem (module)">GameItem</a></span>&gt;</tt>) <strong>items</strong> <span class="extras">(readonly)</span>
704
+
705
+
706
+
707
+
708
+
709
+ </h3><div class="docstring">
710
+ <div class="discussion">
711
+ <p>Returns an array of all items in this players inventory.</p>
712
+
713
+
714
+ </div>
715
+ </div>
716
+ <div class="tags">
717
+
718
+ <p class="tag_title">Returns:</p>
719
+ <ul class="return">
720
+
721
+ <li>
722
+
723
+
724
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="GameItem.html" title="SteamCondenser::Community::GameItem (module)">GameItem</a></span>&gt;</tt>)</span>
725
+
726
+
727
+
728
+ &mdash;
729
+ <div class='inline'><p>All items in the backpack</p>
730
+ </div>
731
+
732
+ </li>
733
+
734
+ </ul>
735
+
736
+ </div><table class="source_code">
737
+ <tr>
738
+ <td>
739
+ <pre class="lines">
740
+
741
+
742
+ 41
743
+ 42
744
+ 43</pre>
745
+ </td>
746
+ <td>
747
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 41</span>
748
+
749
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_items identifier id'>items</span>
750
+ <span class='rubyid_@items ivar id'>@items</span>
751
+ <span class='rubyid_end end kw'>end</span>
752
+ </pre>
753
+ </td>
754
+ </tr>
755
+ </table>
756
+ </div>
757
+
758
+
759
+ <span id=""></span>
760
+ <div class="method_details ">
761
+ <h3 class="signature " id="preliminary_items-instance_method">
762
+
763
+ - (<tt>Array&lt;<span class='object_link'><a href="GameItem.html" title="SteamCondenser::Community::GameItem (module)">GameItem</a></span>&gt;</tt>) <strong>preliminary_items</strong> <span class="extras">(readonly)</span>
764
+
765
+
766
+
767
+
768
+
769
+ </h3><div class="docstring">
770
+ <div class="discussion">
771
+ <p>Returns an array of all items that this player just found or traded</p>
772
+
773
+
774
+ </div>
775
+ </div>
776
+ <div class="tags">
777
+
778
+ <p class="tag_title">Returns:</p>
779
+ <ul class="return">
780
+
781
+ <li>
782
+
783
+
784
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="GameItem.html" title="SteamCondenser::Community::GameItem (module)">GameItem</a></span>&gt;</tt>)</span>
785
+
786
+
787
+
788
+ &mdash;
789
+ <div class='inline'><p>All preliminary items of the inventory</p>
790
+ </div>
791
+
792
+ </li>
793
+
794
+ </ul>
795
+
796
+ </div><table class="source_code">
797
+ <tr>
798
+ <td>
799
+ <pre class="lines">
800
+
801
+
802
+ 46
803
+ 47
804
+ 48</pre>
805
+ </td>
806
+ <td>
807
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 46</span>
808
+
809
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_preliminary_items identifier id'>preliminary_items</span>
810
+ <span class='rubyid_@preliminary_items ivar id'>@preliminary_items</span>
811
+ <span class='rubyid_end end kw'>end</span>
812
+ </pre>
813
+ </td>
814
+ </tr>
815
+ </table>
816
+ </div>
817
+
818
+
819
+ <span id=""></span>
820
+ <div class="method_details ">
821
+ <h3 class="signature " id="user-instance_method">
822
+
823
+ - (<tt><span class='object_link'><a href="SteamId.html" title="SteamCondenser::Community::SteamId (class)">SteamId</a></span></tt>) <strong>user</strong> <span class="extras">(readonly)</span>
824
+
825
+
826
+
827
+
828
+
829
+ </h3><div class="docstring">
830
+ <div class="discussion">
831
+ <p>Returns the Steam ID of the player owning this inventory</p>
832
+
833
+
834
+ </div>
835
+ </div>
836
+ <div class="tags">
837
+
838
+ <p class="tag_title">Returns:</p>
839
+ <ul class="return">
840
+
841
+ <li>
842
+
843
+
844
+ <span class='type'>(<tt><span class='object_link'><a href="SteamId.html" title="SteamCondenser::Community::SteamId (class)">SteamId</a></span></tt>)</span>
845
+
846
+
847
+
848
+ &mdash;
849
+ <div class='inline'><p>The Steam ID of the owner of this inventory</p>
850
+ </div>
851
+
852
+ </li>
853
+
854
+ </ul>
855
+
856
+ </div><table class="source_code">
857
+ <tr>
858
+ <td>
859
+ <pre class="lines">
860
+
861
+
862
+ 51
863
+ 52
864
+ 53</pre>
865
+ </td>
866
+ <td>
867
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 51</span>
868
+
869
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_user identifier id'>user</span>
870
+ <span class='rubyid_@user ivar id'>@user</span>
871
+ <span class='rubyid_end end kw'>end</span>
872
+ </pre>
873
+ </td>
874
+ </tr>
875
+ </table>
876
+ </div>
877
+
878
+ </div>
879
+
880
+
881
+ <div id="class_method_details" class="method_details_list">
882
+ <h2>Class Method Details</h2>
883
+
884
+
885
+ <div class="method_details first">
886
+ <h3 class="signature first" id="new-class_method">
887
+
888
+ + (<tt><span class='object_link'><a href="" title="SteamCondenser::Community::GameInventory (class)">GameInventory</a></span></tt>) <strong>self</strong>(app_id, steam_id, *args, fetch = true, bypass_cache = false)
889
+
890
+
891
+
892
+
893
+
894
+ </h3><div class="docstring">
895
+ <div class="discussion">
896
+ <p>This is a wrapper around all subclasses of <code>GameInventory</code> so that an
897
+ instance of correct subclass is returned for a given application ID. If
898
+ there&#39;s no specific subclass for an application ID exists, a generic
899
+ instance of <code>GameInventory</code> is created.</p>
900
+
901
+
902
+ </div>
903
+ </div>
904
+ <div class="tags">
905
+
906
+
907
+ <p class="tag_title">Parameters:</p>
908
+ <ul class="param">
909
+
910
+ <li>
911
+
912
+ <span class='name'>app_id</span>
913
+
914
+
915
+ <span class='type'>(<tt>Fixnum</tt>)</span>
916
+
917
+
918
+
919
+ &mdash;
920
+ <div class='inline'><p>The application ID of the game</p>
921
+ </div>
922
+
923
+ </li>
924
+
925
+ <li>
926
+
927
+ <span class='name'>steam_id</span>
928
+
929
+
930
+ <span class='type'>(<tt>Fixnum</tt>)</span>
931
+
932
+
933
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
934
+
935
+
936
+ &mdash;
937
+ <div class='inline'><p>The 64bit Steam ID or vanity URL of the user</p>
938
+ </div>
939
+
940
+ </li>
941
+
942
+ <li>
943
+
944
+ <span class='name'>fetch</span>
945
+
946
+
947
+ <span class='type'>(<tt>Boolean</tt>)</span>
948
+
949
+
950
+
951
+ &mdash;
952
+ <div class='inline'><p>if <code>true</code> the object&#39;s data is fetched after
953
+ creation</p>
954
+ </div>
955
+
956
+ </li>
957
+
958
+ <li>
959
+
960
+ <span class='name'>bypass_cache</span>
961
+
962
+
963
+ <span class='type'>(<tt>Boolean</tt>)</span>
964
+
965
+
966
+
967
+ &mdash;
968
+ <div class='inline'><p>if <code>true</code> the object&#39;s data is fetched again
969
+ even if it has been cached already</p>
970
+ </div>
971
+
972
+ </li>
973
+
974
+ </ul>
975
+
976
+ <p class="tag_title">Returns:</p>
977
+ <ul class="return">
978
+
979
+ <li>
980
+
981
+
982
+ <span class='type'>(<tt><span class='object_link'><a href="" title="SteamCondenser::Community::GameInventory (class)">GameInventory</a></span></tt>)</span>
983
+
984
+
985
+
986
+ &mdash;
987
+ <div class='inline'><p>The inventory for the given user and game</p>
988
+ </div>
989
+
990
+ </li>
991
+
992
+ </ul>
993
+ <p class="tag_title">Raises:</p>
994
+ <ul class="raise">
995
+
996
+ <li>
997
+
998
+
999
+ <span class='type'>(<tt>SteamCondenserException</tt>)</span>
1000
+
1001
+
1002
+
1003
+ &mdash;
1004
+ <div class='inline'><p>if creating the inventory fails</p>
1005
+ </div>
1006
+
1007
+ </li>
1008
+
1009
+ </ul>
1010
+
1011
+ </div><table class="source_code">
1012
+ <tr>
1013
+ <td>
1014
+ <pre class="lines">
1015
+
1016
+
1017
+ 67
1018
+ 68
1019
+ 69
1020
+ 70
1021
+ 71
1022
+ 72
1023
+ 73
1024
+ 74
1025
+ 75
1026
+ 76
1027
+ 77
1028
+ 78
1029
+ 79
1030
+ 80
1031
+ 81
1032
+ 82
1033
+ 83
1034
+ 84
1035
+ 85
1036
+ 86
1037
+ 87
1038
+ 88
1039
+ 89
1040
+ 90
1041
+ 91
1042
+ 92
1043
+ 93
1044
+ 94
1045
+ 95</pre>
1046
+ </td>
1047
+ <td>
1048
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 67</span>
1049
+
1050
+ <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_steam_id identifier id'>steam_id</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
1051
+ <span class='rubyid_args identifier id'>args</span> <span class='assign token'>=</span> <span class='rubyid_args identifier id'>args</span><span class='dot token'>.</span><span class='rubyid_unshift identifier id'>unshift</span> <span class='rubyid_steam_id identifier id'>steam_id</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1052
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_self self kw'>self</span> <span class='eq op'>==</span> <span class='rubyid_GameInventory constant id'>GameInventory</span>
1053
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>'wrong number of arguments (1 for 2)'</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_args identifier id'>args</span><span class='dot token'>.</span><span class='rubyid_empty? fid id'>empty?</span>
1054
+ <span class='rubyid_else else kw'>else</span>
1055
+ <span class='rubyid_args identifier id'>args</span> <span class='assign token'>=</span> <span class='rubyid_args identifier id'>args</span><span class='dot token'>.</span><span class='rubyid_unshift identifier id'>unshift</span> <span class='rubyid_app_id identifier id'>app_id</span>
1056
+ <span class='rubyid_app_id identifier id'>app_id</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='colon2 op'>::</span><span class='rubyid_APP_ID constant id'>APP_ID</span>
1057
+ <span class='rubyid_end end kw'>end</span>
1058
+
1059
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span> <span class='assign token'>=</span> <span class='rubyid_Cacheable constant id'>Cacheable</span><span class='colon2 op'>::</span><span class='rubyid_ClassMethods constant id'>ClassMethods</span><span class='dot token'>.</span><span class='rubyid_instance_method identifier id'>instance_method</span> <span class='symbol val'>:new</span>
1060
+
1061
+ <span class='rubyid_case case kw'>case</span> <span class='rubyid_app_id identifier id'>app_id</span>
1062
+ <span class='rubyid_when when kw'>when</span> <span class='rubyid_Dota2BetaInventory constant id'>Dota2BetaInventory</span><span class='colon2 op'>::</span><span class='rubyid_APP_ID constant id'>APP_ID</span>
1063
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span> <span class='assign token'>=</span> <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_bind identifier id'>bind</span> <span class='rubyid_Dota2BetaInventory constant id'>Dota2BetaInventory</span>
1064
+ <span class='rubyid_when when kw'>when</span> <span class='rubyid_Dota2Inventory constant id'>Dota2Inventory</span><span class='colon2 op'>::</span><span class='rubyid_APP_ID constant id'>APP_ID</span>
1065
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span> <span class='assign token'>=</span> <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_bind identifier id'>bind</span> <span class='rubyid_Dota2Inventory constant id'>Dota2Inventory</span>
1066
+ <span class='rubyid_when when kw'>when</span> <span class='rubyid_Portal2Inventory constant id'>Portal2Inventory</span><span class='colon2 op'>::</span><span class='rubyid_APP_ID constant id'>APP_ID</span>
1067
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span> <span class='assign token'>=</span> <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_bind identifier id'>bind</span> <span class='rubyid_Portal2Inventory constant id'>Portal2Inventory</span>
1068
+ <span class='rubyid_when when kw'>when</span> <span class='rubyid_TF2BetaInventory constant id'>TF2BetaInventory</span><span class='colon2 op'>::</span><span class='rubyid_APP_ID constant id'>APP_ID</span>
1069
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span> <span class='assign token'>=</span> <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_bind identifier id'>bind</span> <span class='rubyid_TF2BetaInventory constant id'>TF2BetaInventory</span>
1070
+ <span class='rubyid_when when kw'>when</span> <span class='rubyid_TF2Inventory constant id'>TF2Inventory</span><span class='colon2 op'>::</span><span class='rubyid_APP_ID constant id'>APP_ID</span>
1071
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span> <span class='assign token'>=</span> <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_bind identifier id'>bind</span> <span class='rubyid_TF2Inventory constant id'>TF2Inventory</span>
1072
+ <span class='rubyid_else else kw'>else</span>
1073
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span> <span class='assign token'>=</span> <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_bind identifier id'>bind</span> <span class='rubyid_GameInventory constant id'>GameInventory</span>
1074
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span> <span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span>
1075
+ <span class='rubyid_end end kw'>end</span>
1076
+
1077
+ <span class='rubyid_cacheable_new identifier id'>cacheable_new</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span>
1078
+ <span class='rubyid_end end kw'>end</span>
1079
+ </pre>
1080
+ </td>
1081
+ </tr>
1082
+ </table>
1083
+ </div>
1084
+
1085
+ <div class="method_details ">
1086
+ <h3 class="signature " id="schema_language=-class_method">
1087
+
1088
+ + (<tt>Object</tt>) <strong>schema_language=</strong>(language)
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+ </h3><div class="docstring">
1095
+ <div class="discussion">
1096
+ <p>Sets the language the schema should be fetched in (default is: <code>&#39;en&#39;</code>)</p>
1097
+
1098
+
1099
+ </div>
1100
+ </div>
1101
+ <div class="tags">
1102
+ <p class="tag_title">Parameters:</p>
1103
+ <ul class="param">
1104
+
1105
+ <li>
1106
+
1107
+ <span class='name'>language</span>
1108
+
1109
+
1110
+ <span class='type'>(<tt>String</tt>)</span>
1111
+
1112
+
1113
+
1114
+ &mdash;
1115
+ <div class='inline'><p>The ISO 639-1 code of the schema language</p>
1116
+ </div>
1117
+
1118
+ </li>
1119
+
1120
+ </ul>
1121
+
1122
+
1123
+ </div><table class="source_code">
1124
+ <tr>
1125
+ <td>
1126
+ <pre class="lines">
1127
+
1128
+
1129
+ 100
1130
+ 101
1131
+ 102</pre>
1132
+ </td>
1133
+ <td>
1134
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 100</span>
1135
+
1136
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_schema_language identifier id'>schema_language</span><span class='assign token'>=</span><span class='lparen token'>(</span><span class='rubyid_language identifier id'>language</span><span class='rparen token'>)</span>
1137
+ <span class='rubyid_@@schema_language ivar id'>@@schema_language</span> <span class='assign token'>=</span> <span class='rubyid_language identifier id'>language</span>
1138
+ <span class='rubyid_end end kw'>end</span>
1139
+ </pre>
1140
+ </td>
1141
+ </tr>
1142
+ </table>
1143
+ </div>
1144
+
1145
+ </div>
1146
+
1147
+ <div id="instance_method_details" class="method_details_list">
1148
+ <h2>Instance Method Details</h2>
1149
+
1150
+
1151
+ <div class="method_details first">
1152
+ <h3 class="signature first" id="[]-instance_method">
1153
+
1154
+ - (<tt><span class='object_link'><a href="GameItem.html" title="SteamCondenser::Community::GameItem (module)">GameItem</a></span></tt>) <strong>[]</strong>(index)
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+ </h3><div class="docstring">
1161
+ <div class="discussion">
1162
+ <p>Returns the item at the given position in the inventory. The positions
1163
+ range from 1 to 100 instead of the usual array indices (0 to 99).</p>
1164
+
1165
+
1166
+ </div>
1167
+ </div>
1168
+ <div class="tags">
1169
+
1170
+ <p class="tag_title">Returns:</p>
1171
+ <ul class="return">
1172
+
1173
+ <li>
1174
+
1175
+
1176
+ <span class='type'>(<tt><span class='object_link'><a href="GameItem.html" title="SteamCondenser::Community::GameItem (module)">GameItem</a></span></tt>)</span>
1177
+
1178
+
1179
+
1180
+ &mdash;
1181
+ <div class='inline'><p>The item at the given position in the inventory</p>
1182
+ </div>
1183
+
1184
+ </li>
1185
+
1186
+ </ul>
1187
+
1188
+ </div><table class="source_code">
1189
+ <tr>
1190
+ <td>
1191
+ <pre class="lines">
1192
+
1193
+
1194
+ 128
1195
+ 129
1196
+ 130</pre>
1197
+ </td>
1198
+ <td>
1199
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 128</span>
1200
+
1201
+ <span class='rubyid_def def kw'>def</span> <span class='aref op'>[]</span><span class='lparen token'>(</span><span class='rubyid_index identifier id'>index</span><span class='rparen token'>)</span>
1202
+ <span class='rubyid_@items ivar id'>@items</span><span class='lbrack token'>[</span><span class='rubyid_index identifier id'>index</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rbrack token'>]</span>
1203
+ <span class='rubyid_end end kw'>end</span>
1204
+ </pre>
1205
+ </td>
1206
+ </tr>
1207
+ </table>
1208
+ </div>
1209
+
1210
+ <div class="method_details ">
1211
+ <h3 class="signature " id="fetch-instance_method">
1212
+
1213
+ - (<tt>Object</tt>) <strong>fetch</strong>
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+ </h3><div class="docstring">
1220
+ <div class="discussion">
1221
+ <p>Updates the contents of the inventory using the Steam Web API</p>
1222
+
1223
+
1224
+ </div>
1225
+ </div>
1226
+ <div class="tags">
1227
+
1228
+
1229
+ </div><table class="source_code">
1230
+ <tr>
1231
+ <td>
1232
+ <pre class="lines">
1233
+
1234
+
1235
+ 133
1236
+ 134
1237
+ 135
1238
+ 136
1239
+ 137
1240
+ 138
1241
+ 139
1242
+ 140
1243
+ 141
1244
+ 142
1245
+ 143
1246
+ 144
1247
+ 145
1248
+ 146
1249
+ 147
1250
+ 148
1251
+ 149
1252
+ 150</pre>
1253
+ </td>
1254
+ <td>
1255
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 133</span>
1256
+
1257
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_fetch identifier id'>fetch</span>
1258
+ <span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='symbol val'>:SteamID</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_@user ivar id'>@user</span><span class='dot token'>.</span><span class='rubyid_steam_id64 identifier id'>steam_id64</span> <span class='rbrace token'>}</span>
1259
+ <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! fid id'>json!</span> <span class='string val'>&quot;IEconItems_#@app_id&quot;</span><span class='comma token'>,</span> <span class='string val'>'GetPlayerItems'</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>
1260
+ <span class='rubyid_item_class identifier id'>item_class</span> <span class='assign token'>=</span> <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_send identifier id'>send</span> <span class='symbol val'>:class_variable_get</span><span class='comma token'>,</span> <span class='symbol val'>:@@item_class</span>
1261
+
1262
+ <span class='rubyid_@items ivar id'>@items</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1263
+ <span class='rubyid_@preliminary_items ivar id'>@preliminary_items</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1264
+ <span class='rubyid_result identifier id'>result</span><span class='lbrack token'>[</span><span class='symbol val'>:items</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_item_data identifier id'>item_data</span><span class='bitor op'>|</span>
1265
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_item_data identifier id'>item_data</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1266
+ <span class='rubyid_item identifier id'>item</span> <span class='assign token'>=</span> <span class='rubyid_item_class identifier id'>item_class</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='comma token'>,</span> <span class='rubyid_item_data identifier id'>item_data</span><span class='rparen token'>)</span>
1267
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_item identifier id'>item</span><span class='dot token'>.</span><span class='rubyid_preliminary? fid id'>preliminary?</span>
1268
+ <span class='rubyid_@preliminary_items ivar id'>@preliminary_items</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_item identifier id'>item</span>
1269
+ <span class='rubyid_else else kw'>else</span>
1270
+ <span class='rubyid_@items ivar id'>@items</span><span class='lbrack token'>[</span><span class='rubyid_item identifier id'>item</span><span class='dot token'>.</span><span class='rubyid_backpack_position identifier id'>backpack_position</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_item identifier id'>item</span>
1271
+ <span class='rubyid_end end kw'>end</span>
1272
+ <span class='rubyid_end end kw'>end</span>
1273
+ <span class='rubyid_end end kw'>end</span>
1274
+ <span class='rubyid_end end kw'>end</span>
1275
+ </pre>
1276
+ </td>
1277
+ </tr>
1278
+ </table>
1279
+ </div>
1280
+
1281
+ <div class="method_details ">
1282
+ <h3 class="signature " id="inspect-instance_method">
1283
+
1284
+ - (<tt>String</tt>) <strong>inspect</strong>
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+ </h3><div class="docstring">
1291
+ <div class="discussion">
1292
+ <p>Returns a short, human-readable string representation of this inventory</p>
1293
+
1294
+
1295
+ </div>
1296
+ </div>
1297
+ <div class="tags">
1298
+
1299
+ <p class="tag_title">Returns:</p>
1300
+ <ul class="return">
1301
+
1302
+ <li>
1303
+
1304
+
1305
+ <span class='type'>(<tt>String</tt>)</span>
1306
+
1307
+
1308
+
1309
+ &mdash;
1310
+ <div class='inline'><p>A string representation of this inventory</p>
1311
+ </div>
1312
+
1313
+ </li>
1314
+
1315
+ </ul>
1316
+
1317
+ </div><table class="source_code">
1318
+ <tr>
1319
+ <td>
1320
+ <pre class="lines">
1321
+
1322
+
1323
+ 155
1324
+ 156
1325
+ 157
1326
+ 158</pre>
1327
+ </td>
1328
+ <td>
1329
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 155</span>
1330
+
1331
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_inspect identifier id'>inspect</span>
1332
+ <span class='dstring node'>&quot;#&lt;#{self.class}:#@app_id #@steam_id64 (#{size} items) - &quot;</span> <span class='plus op'>+</span>
1333
+ <span class='dstring node'>&quot;#{fetch_time || 'not fetched'}&gt;&quot;</span>
1334
+ <span class='rubyid_end end kw'>end</span>
1335
+ </pre>
1336
+ </td>
1337
+ </tr>
1338
+ </table>
1339
+ </div>
1340
+
1341
+ <div class="method_details ">
1342
+ <h3 class="signature " id="item_schema-instance_method">
1343
+
1344
+ - (<tt><span class='object_link'><a href="GameItemSchema.html" title="SteamCondenser::Community::GameItemSchema (class)">GameItemSchema</a></span></tt>) <strong>item_schema</strong>
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+ </h3><div class="docstring">
1351
+ <div class="discussion">
1352
+ <p>Returns the item schema for this inventory</p>
1353
+
1354
+
1355
+ </div>
1356
+ </div>
1357
+ <div class="tags">
1358
+
1359
+ <p class="tag_title">Returns:</p>
1360
+ <ul class="return">
1361
+
1362
+ <li>
1363
+
1364
+
1365
+ <span class='type'>(<tt><span class='object_link'><a href="GameItemSchema.html" title="SteamCondenser::Community::GameItemSchema (class)">GameItemSchema</a></span></tt>)</span>
1366
+
1367
+
1368
+
1369
+ &mdash;
1370
+ <div class='inline'><p>The item schema for the game this inventory
1371
+ belongs to</p>
1372
+ </div>
1373
+
1374
+ </li>
1375
+
1376
+ </ul>
1377
+
1378
+ </div><table class="source_code">
1379
+ <tr>
1380
+ <td>
1381
+ <pre class="lines">
1382
+
1383
+
1384
+ 164
1385
+ 165
1386
+ 166</pre>
1387
+ </td>
1388
+ <td>
1389
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 164</span>
1390
+
1391
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_item_schema identifier id'>item_schema</span>
1392
+ <span class='rubyid_@item_schema ivar id'>@item_schema</span> <span class='opasgn op'>||=</span> <span class='rubyid_GameItemSchema constant id'>GameItemSchema</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='rubyid_@@schema_language ivar id'>@@schema_language</span>
1393
+ <span class='rubyid_end end kw'>end</span>
1394
+ </pre>
1395
+ </td>
1396
+ </tr>
1397
+ </table>
1398
+ </div>
1399
+
1400
+ <div class="method_details ">
1401
+ <h3 class="signature " id="size-instance_method">
1402
+
1403
+ - (<tt>Fixnum</tt>) <strong>size</strong>
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+ </h3><div class="docstring">
1410
+ <div class="discussion">
1411
+ <p>Returns the number of items in the user&#39;s inventory</p>
1412
+
1413
+
1414
+ </div>
1415
+ </div>
1416
+ <div class="tags">
1417
+
1418
+ <p class="tag_title">Returns:</p>
1419
+ <ul class="return">
1420
+
1421
+ <li>
1422
+
1423
+
1424
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1425
+
1426
+
1427
+
1428
+ &mdash;
1429
+ <div class='inline'><p> The number of items in the inventory</p>
1430
+ </div>
1431
+
1432
+ </li>
1433
+
1434
+ </ul>
1435
+
1436
+ </div><table class="source_code">
1437
+ <tr>
1438
+ <td>
1439
+ <pre class="lines">
1440
+
1441
+
1442
+ 171
1443
+ 172
1444
+ 173</pre>
1445
+ </td>
1446
+ <td>
1447
+ <pre class="code"><span class="info file"># File 'lib/steam-condenser/community/game_inventory.rb', line 171</span>
1448
+
1449
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_size identifier id'>size</span>
1450
+ <span class='rubyid_@items ivar id'>@items</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span>
1451
+ <span class='rubyid_end end kw'>end</span>
1452
+ </pre>
1453
+ </td>
1454
+ </tr>
1455
+ </table>
1456
+ </div>
1457
+
1458
+ </div>
1459
+
1460
+ </div>
1461
+
1462
+ <div id="footer">
1463
+ Generated on Wed Aug 14 21:47:57 2013 by
1464
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1465
+ 0.8.7 (ruby-1.8.7).
1466
+ </div>
1467
+
1468
+ </body>
1469
+ </html>