steam-condenser 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (371) hide show
  1. data/Gemfile.lock +7 -7
  2. data/README.md +9 -2
  3. data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +426 -0
  4. data/doc/A2S_INFO_Packet.html +260 -0
  5. data/doc/A2S_PLAYER_Packet.html +295 -0
  6. data/doc/A2S_RULES_Packet.html +296 -0
  7. data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
  8. data/doc/AbstractL4DStats.html +978 -0
  9. data/doc/AbstractL4DWeapon.html +734 -0
  10. data/doc/Achievement.html +660 -0
  11. data/doc/AlienSwarmMission.html +1557 -0
  12. data/doc/AlienSwarmStats.html +965 -0
  13. data/doc/AlienSwarmWeapon.html +640 -0
  14. data/doc/AppNews.html +1442 -0
  15. data/doc/C2M_CHECKMD5_Packet.html +341 -0
  16. data/doc/CSSMap.html +806 -0
  17. data/doc/CSSStats.html +825 -0
  18. data/doc/CSSWeapon.html +889 -0
  19. data/doc/Cacheable.html +913 -0
  20. data/doc/Cacheable/ClassMethods.html +696 -0
  21. data/doc/DefenseGridStats.html +2559 -0
  22. data/doc/DoDSClass.html +1264 -0
  23. data/doc/DoDSStats.html +486 -0
  24. data/doc/DoDSWeapon.html +806 -0
  25. data/doc/Dota2BetaInventory.html +339 -0
  26. data/doc/Dota2Inventory.html +339 -0
  27. data/doc/Dota2Item.html +388 -0
  28. data/doc/Dota2Stats.html +366 -0
  29. data/doc/GameAchievement.html +1257 -0
  30. data/doc/GameClass.html +321 -0
  31. data/doc/GameInventory.html +1363 -0
  32. data/doc/GameItem.html +1339 -0
  33. data/doc/GameLeaderboard.html +1609 -0
  34. data/doc/GameLeaderboardEntry.html +629 -0
  35. data/doc/GameSchema.html +568 -0
  36. data/doc/GameServer.html +2405 -0
  37. data/doc/GameStats.html +1461 -0
  38. data/doc/GameWeapon.html +590 -0
  39. data/doc/GoldSrcServer.html +740 -0
  40. data/doc/GoldSrcSocket.html +850 -0
  41. data/doc/ItemSchema.html +780 -0
  42. data/doc/L4D2Map.html +739 -0
  43. data/doc/L4D2Stats.html +930 -0
  44. data/doc/L4D2Weapon.html +486 -0
  45. data/doc/L4DExplosive.html +374 -0
  46. data/doc/L4DMap.html +776 -0
  47. data/doc/L4DStats.html +530 -0
  48. data/doc/L4DWeapon.html +296 -0
  49. data/doc/M2A_SERVER_BATCH_Packet.html +430 -0
  50. data/doc/M2C_ISVALIDMD5_Packet.html +383 -0
  51. data/doc/M2S_REQUESTRESTART_Packet.html +382 -0
  52. data/doc/MasterServer.html +1070 -0
  53. data/doc/MasterServerSocket.html +293 -0
  54. data/doc/Module.html +194 -0
  55. data/doc/PacketFormatError.html +257 -0
  56. data/doc/Portal2Inventory.html +339 -0
  57. data/doc/Portal2Item.html +499 -0
  58. data/doc/Portal2Stats.html +368 -0
  59. data/doc/RCONAuthRequest.html +318 -0
  60. data/doc/RCONAuthResponse.html +305 -0
  61. data/doc/RCONBanError.html +247 -0
  62. data/doc/RCONExecRequest.html +318 -0
  63. data/doc/RCONExecResponse.html +407 -0
  64. data/doc/RCONGoldSrcRequest.html +363 -0
  65. data/doc/RCONGoldSrcResponse.html +367 -0
  66. data/doc/RCONNoAuthError.html +247 -0
  67. data/doc/RCONPacket.html +548 -0
  68. data/doc/RCONPacketFactory.html +300 -0
  69. data/doc/RCONSocket.html +669 -0
  70. data/doc/RCONTerminator.html +304 -0
  71. data/doc/RequestWithChallenge.html +233 -0
  72. data/doc/S2A_INFO2_Packet.html +371 -0
  73. data/doc/S2A_INFO_BasePacket.html +357 -0
  74. data/doc/S2A_INFO_DETAILED_Packet.html +370 -0
  75. data/doc/S2A_LOGSTRING_Packet.html +373 -0
  76. data/doc/S2A_PLAYER_Packet.html +417 -0
  77. data/doc/S2A_RULES_Packet.html +411 -0
  78. data/doc/S2C_CHALLENGE_Packet.html +370 -0
  79. data/doc/S2M_HEARTBEAT2_Packet.html +444 -0
  80. data/doc/Server.html +781 -0
  81. data/doc/SourceServer.html +776 -0
  82. data/doc/SourceSocket.html +366 -0
  83. data/doc/StatsAttribute.html +514 -0
  84. data/doc/SteamCondenser.html +155 -0
  85. data/doc/SteamCondenser/A2M_GET_SERVERS_BATCH2_Packet.html +413 -0
  86. data/doc/SteamCondenser/A2S_INFO_Packet.html +249 -0
  87. data/doc/SteamCondenser/A2S_PLAYER_Packet.html +281 -0
  88. data/doc/SteamCondenser/A2S_RULES_Packet.html +282 -0
  89. data/doc/SteamCondenser/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +250 -0
  90. data/doc/SteamCondenser/AbstractL4DStats.html +954 -0
  91. data/doc/SteamCondenser/AbstractL4DWeapon.html +703 -0
  92. data/doc/SteamCondenser/AlienSwarmMission.html +1494 -0
  93. data/doc/SteamCondenser/AlienSwarmStats.html +938 -0
  94. data/doc/SteamCondenser/AlienSwarmWeapon.html +614 -0
  95. data/doc/SteamCondenser/AppNews.html +1387 -0
  96. data/doc/SteamCondenser/C2M_CHECKMD5_Packet.html +327 -0
  97. data/doc/SteamCondenser/CSSMap.html +774 -0
  98. data/doc/SteamCondenser/CSSStats.html +799 -0
  99. data/doc/SteamCondenser/CSSWeapon.html +855 -0
  100. data/doc/SteamCondenser/Cacheable.html +698 -0
  101. data/doc/SteamCondenser/Cacheable/ClassMethods.html +531 -0
  102. data/doc/SteamCondenser/Community.html +134 -0
  103. data/doc/SteamCondenser/DefenseGridStats.html +2455 -0
  104. data/doc/SteamCondenser/DoDSClass.html +1209 -0
  105. data/doc/SteamCondenser/DoDSStats.html +470 -0
  106. data/doc/SteamCondenser/DoDSWeapon.html +774 -0
  107. data/doc/SteamCondenser/Error.html +156 -0
  108. data/doc/SteamCondenser/Error/PacketFormat.html +246 -0
  109. data/doc/SteamCondenser/Error/RCONBan.html +237 -0
  110. data/doc/SteamCondenser/Error/RCONNoAuth.html +236 -0
  111. data/doc/SteamCondenser/Error/Timeout.html +238 -0
  112. data/doc/SteamCondenser/Error/WebApi.html +339 -0
  113. data/doc/SteamCondenser/GameAchievement.html +1210 -0
  114. data/doc/SteamCondenser/GameClass.html +306 -0
  115. data/doc/SteamCondenser/GameInventory.html +1236 -0
  116. data/doc/SteamCondenser/GameItem.html +1282 -0
  117. data/doc/SteamCondenser/GameLeaderboard.html +1562 -0
  118. data/doc/SteamCondenser/GameLeaderboardEntry.html +604 -0
  119. data/doc/SteamCondenser/GameServer.html +2337 -0
  120. data/doc/SteamCondenser/GameStats.html +1416 -0
  121. data/doc/SteamCondenser/GameWeapon.html +566 -0
  122. data/doc/SteamCondenser/GoldSrcServer.html +716 -0
  123. data/doc/SteamCondenser/GoldSrcSocket.html +831 -0
  124. data/doc/SteamCondenser/L4D2Map.html +713 -0
  125. data/doc/SteamCondenser/L4D2Stats.html +906 -0
  126. data/doc/SteamCondenser/L4D2Weapon.html +466 -0
  127. data/doc/SteamCondenser/L4DExplosive.html +362 -0
  128. data/doc/SteamCondenser/L4DMap.html +746 -0
  129. data/doc/SteamCondenser/L4DStats.html +513 -0
  130. data/doc/SteamCondenser/L4DWeapon.html +284 -0
  131. data/doc/SteamCondenser/M2A_SERVER_BATCH_Packet.html +415 -0
  132. data/doc/SteamCondenser/M2C_ISVALIDMD5_Packet.html +368 -0
  133. data/doc/SteamCondenser/M2S_REQUESTRESTART_Packet.html +367 -0
  134. data/doc/SteamCondenser/MasterServer.html +1046 -0
  135. data/doc/SteamCondenser/MasterServerSocket.html +282 -0
  136. data/doc/SteamCondenser/Portal2Inventory.html +217 -0
  137. data/doc/SteamCondenser/Portal2Item.html +483 -0
  138. data/doc/SteamCondenser/Portal2Stats.html +353 -0
  139. data/doc/SteamCondenser/RCONAuthRequest.html +306 -0
  140. data/doc/SteamCondenser/RCONAuthResponse.html +293 -0
  141. data/doc/SteamCondenser/RCONExecRequest.html +306 -0
  142. data/doc/SteamCondenser/RCONExecResponse.html +392 -0
  143. data/doc/SteamCondenser/RCONGoldSrcRequest.html +349 -0
  144. data/doc/SteamCondenser/RCONGoldSrcResponse.html +354 -0
  145. data/doc/SteamCondenser/RCONPacket.html +530 -0
  146. data/doc/SteamCondenser/RCONPacketFactory.html +293 -0
  147. data/doc/SteamCondenser/RCONSocket.html +649 -0
  148. data/doc/SteamCondenser/RCONTerminator.html +292 -0
  149. data/doc/SteamCondenser/RequestWithChallenge.html +223 -0
  150. data/doc/SteamCondenser/S2A_INFO2_Packet.html +359 -0
  151. data/doc/SteamCondenser/S2A_INFO_BasePacket.html +342 -0
  152. data/doc/SteamCondenser/S2A_INFO_DETAILED_Packet.html +358 -0
  153. data/doc/SteamCondenser/S2A_LOGSTRING_Packet.html +358 -0
  154. data/doc/SteamCondenser/S2A_PLAYER_Packet.html +402 -0
  155. data/doc/SteamCondenser/S2A_RULES_Packet.html +396 -0
  156. data/doc/SteamCondenser/S2C_CHALLENGE_Packet.html +356 -0
  157. data/doc/SteamCondenser/S2M_HEARTBEAT2_Packet.html +430 -0
  158. data/doc/SteamCondenser/Server.html +754 -0
  159. data/doc/SteamCondenser/Servers.html +133 -0
  160. data/doc/SteamCondenser/SourceServer.html +752 -0
  161. data/doc/SteamCondenser/SourceSocket.html +355 -0
  162. data/doc/SteamCondenser/SteamGame.html +1802 -0
  163. data/doc/SteamCondenser/SteamGroup.html +969 -0
  164. data/doc/SteamCondenser/SteamId.html +4242 -0
  165. data/doc/SteamCondenser/SteamPacket.html +456 -0
  166. data/doc/SteamCondenser/SteamPacketFactory.html +521 -0
  167. data/doc/SteamCondenser/SteamPlayer.html +1696 -0
  168. data/doc/SteamCondenser/SteamSocket.html +679 -0
  169. data/doc/SteamCondenser/TF2BetaInventory.html +198 -0
  170. data/doc/SteamCondenser/TF2Class.html +1145 -0
  171. data/doc/SteamCondenser/TF2ClassFactory.html +263 -0
  172. data/doc/SteamCondenser/TF2Engineer.html +534 -0
  173. data/doc/SteamCondenser/TF2GoldenWrench.html +731 -0
  174. data/doc/SteamCondenser/TF2Inventory.html +217 -0
  175. data/doc/SteamCondenser/TF2Item.html +482 -0
  176. data/doc/SteamCondenser/TF2Medic.html +445 -0
  177. data/doc/SteamCondenser/TF2Sniper.html +357 -0
  178. data/doc/SteamCondenser/TF2Spy.html +531 -0
  179. data/doc/SteamCondenser/TF2Stats.html +670 -0
  180. data/doc/SteamCondenser/TimeoutError.html +249 -0
  181. data/doc/SteamCondenser/WebApi.html +999 -0
  182. data/doc/SteamCondenser/XMLData.html +171 -0
  183. data/doc/SteamCondenserError.html +153 -0
  184. data/doc/SteamGame.html +1859 -0
  185. data/doc/SteamGroup.html +1012 -0
  186. data/doc/SteamId.html +4369 -0
  187. data/doc/SteamPacket.html +469 -0
  188. data/doc/SteamPacketFactory.html +545 -0
  189. data/doc/SteamPlayer.html +1766 -0
  190. data/doc/SteamSocket.html +699 -0
  191. data/doc/StringIO.html +947 -0
  192. data/doc/TF2BetaInventory.html +315 -0
  193. data/doc/TF2Class.html +1194 -0
  194. data/doc/TF2ClassFactory.html +273 -0
  195. data/doc/TF2Engineer.html +558 -0
  196. data/doc/TF2GoldenWrench.html +760 -0
  197. data/doc/TF2Inventory.html +339 -0
  198. data/doc/TF2Item.html +499 -0
  199. data/doc/TF2Medic.html +465 -0
  200. data/doc/TF2Sniper.html +373 -0
  201. data/doc/TF2Spy.html +555 -0
  202. data/doc/TF2Stats.html +696 -0
  203. data/doc/WebApi.html +1021 -0
  204. data/doc/WebApiError.html +347 -0
  205. data/doc/XMLData.html +253 -0
  206. data/doc/_index.html +717 -0
  207. data/doc/class_list.html +53 -0
  208. data/doc/css/common.css +1 -0
  209. data/doc/css/full_list.css +57 -0
  210. data/doc/css/style.css +328 -0
  211. data/doc/file.LICENSE.html +100 -0
  212. data/doc/file.README.html +136 -0
  213. data/doc/file_list.html +58 -0
  214. data/doc/frames.html +28 -0
  215. data/doc/index.html +136 -0
  216. data/doc/js/app.js +214 -0
  217. data/doc/js/full_list.js +173 -0
  218. data/doc/js/jquery.js +4 -0
  219. data/doc/method_list.html +3988 -0
  220. data/doc/methods_list.html +3900 -0
  221. data/doc/top-level-namespace.html +114 -0
  222. data/lib/steam-condenser/version.rb +1 -1
  223. data/lib/steam/community/cacheable.rb +105 -44
  224. data/lib/steam/community/dota2/dota2_beta_inventory.rb +27 -0
  225. data/lib/steam/community/dota2/dota2_inventory.rb +27 -0
  226. data/lib/steam/community/dota2/dota2_item.rb +33 -0
  227. data/lib/steam/community/game_inventory.rb +18 -16
  228. data/lib/steam/community/game_leaderboard.rb +2 -2
  229. data/lib/steam/community/game_stats.rb +1 -1
  230. data/lib/steam/community/portal2/portal2_inventory.rb +11 -9
  231. data/lib/steam/community/steam_game.rb +0 -2
  232. data/lib/steam/community/steam_group.rb +2 -7
  233. data/lib/steam/community/steam_id.rb +2 -7
  234. data/lib/steam/community/tf2/tf2_beta_inventory.rb +11 -8
  235. data/lib/steam/community/tf2/tf2_inventory.rb +11 -9
  236. data/lib/steam/community/xml_data.rb +8 -1
  237. data/lib/steam/packets/a2s_player_packet.rb +1 -1
  238. data/lib/steam/packets/a2s_rules_packet.rb +1 -1
  239. data/lib/steam/servers/master_server.rb +3 -2
  240. data/lib/steam/sockets/rcon_socket.rb +1 -2
  241. data/pkg/steam-condenser-1.2.0.gem +0 -0
  242. data/pkg/steam-condenser-1.2.0/Gemfile +3 -0
  243. data/pkg/steam-condenser-1.2.0/Gemfile.lock +30 -0
  244. data/pkg/steam-condenser-1.2.0/LICENSE +25 -0
  245. data/pkg/steam-condenser-1.2.0/README.md +47 -0
  246. data/pkg/steam-condenser-1.2.0/Rakefile +46 -0
  247. data/pkg/steam-condenser-1.2.0/lib/core_ext/stringio.rb +91 -0
  248. data/pkg/steam-condenser-1.2.0/lib/errors/packet_format_error.rb +21 -0
  249. data/pkg/steam-condenser-1.2.0/lib/errors/rcon_ban_error.rb +22 -0
  250. data/pkg/steam-condenser-1.2.0/lib/errors/rcon_no_auth_error.rb +21 -0
  251. data/pkg/steam-condenser-1.2.0/lib/errors/steam_condenser_error.rb +11 -0
  252. data/pkg/steam-condenser-1.2.0/lib/errors/timeout_error.rb +28 -0
  253. data/pkg/steam-condenser-1.2.0/lib/errors/web_api_error.rb +57 -0
  254. data/pkg/steam-condenser-1.2.0/lib/steam-condenser.rb +18 -0
  255. data/pkg/steam-condenser-1.2.0/lib/steam-condenser/community.rb +24 -0
  256. data/pkg/steam-condenser-1.2.0/lib/steam-condenser/servers.rb +24 -0
  257. data/pkg/steam-condenser-1.2.0/lib/steam-condenser/version.rb +11 -0
  258. data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
  259. data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_stats.rb +179 -0
  260. data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
  261. data/pkg/steam-condenser-1.2.0/lib/steam/community/app_news.rb +133 -0
  262. data/pkg/steam-condenser-1.2.0/lib/steam/community/cacheable.rb +137 -0
  263. data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_map.rb +61 -0
  264. data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_stats.rb +136 -0
  265. data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_weapon.rb +69 -0
  266. data/pkg/steam-condenser-1.2.0/lib/steam/community/defense_grid/defense_grid_stats.rb +237 -0
  267. data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_class.rb +90 -0
  268. data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_stats.rb +61 -0
  269. data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_weapon.rb +67 -0
  270. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_achievement.rb +109 -0
  271. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_class.rb +22 -0
  272. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_inventory.rb +152 -0
  273. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_item.rb +99 -0
  274. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard.rb +201 -0
  275. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard_entry.rb +43 -0
  276. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_stats.rb +175 -0
  277. data/pkg/steam-condenser-1.2.0/lib/steam/community/game_weapon.rb +41 -0
  278. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_stats.rb +173 -0
  279. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
  280. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_map.rb +90 -0
  281. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_stats.rb +165 -0
  282. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
  283. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_explosive.rb +34 -0
  284. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_map.rb +65 -0
  285. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_stats.rb +71 -0
  286. data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_weapon.rb +26 -0
  287. data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_inventory.rb +25 -0
  288. data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_item.rb +47 -0
  289. data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_stats.rb +32 -0
  290. data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_game.rb +182 -0
  291. data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_group.rb +135 -0
  292. data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_id.rb +513 -0
  293. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_beta_inventory.rb +22 -0
  294. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class.rb +92 -0
  295. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
  296. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_engineer.rb +43 -0
  297. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
  298. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_inventory.rb +25 -0
  299. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_item.rb +47 -0
  300. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_medic.rb +35 -0
  301. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_sniper.rb +28 -0
  302. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_spy.rb +41 -0
  303. data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_stats.rb +76 -0
  304. data/pkg/steam-condenser-1.2.0/lib/steam/community/web_api.rb +129 -0
  305. data/pkg/steam-condenser-1.2.0/lib/steam/community/xml_data.rb +17 -0
  306. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
  307. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_info_packet.rb +24 -0
  308. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_player_packet.rb +31 -0
  309. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_rules_packet.rb +32 -0
  310. data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
  311. data/pkg/steam-condenser-1.2.0/lib/steam/packets/c2m_checkmd5_packet.rb +30 -0
  312. data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
  313. data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
  314. data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
  315. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
  316. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
  317. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
  318. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
  319. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
  320. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
  321. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet.rb +57 -0
  322. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
  323. data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
  324. data/pkg/steam-condenser-1.2.0/lib/steam/packets/request_with_challenge.rb +19 -0
  325. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info2_packet.rb +62 -0
  326. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_base_packet.rb +35 -0
  327. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_detailed_packet.rb +61 -0
  328. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_logstring_packet.rb +30 -0
  329. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_player_packet.rb +44 -0
  330. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_rules_packet.rb +48 -0
  331. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2c_challenge_packet.rb +35 -0
  332. data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2m_heartbeat2_packet.rb +71 -0
  333. data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet.rb +52 -0
  334. data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet_factory.rb +108 -0
  335. data/pkg/steam-condenser-1.2.0/lib/steam/servers/game_server.rb +392 -0
  336. data/pkg/steam-condenser-1.2.0/lib/steam/servers/goldsrc_server.rb +74 -0
  337. data/pkg/steam-condenser-1.2.0/lib/steam/servers/master_server.rb +182 -0
  338. data/pkg/steam-condenser-1.2.0/lib/steam/servers/server.rb +104 -0
  339. data/pkg/steam-condenser-1.2.0/lib/steam/servers/source_server.rb +98 -0
  340. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/goldsrc_socket.rb +142 -0
  341. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/master_server_socket.rb +30 -0
  342. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/rcon_socket.rb +94 -0
  343. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/source_socket.rb +78 -0
  344. data/pkg/steam-condenser-1.2.0/lib/steam/sockets/steam_socket.rb +86 -0
  345. data/pkg/steam-condenser-1.2.0/lib/steam/steam_player.rb +143 -0
  346. data/pkg/steam-condenser-1.2.0/steam-condenser.gemspec +25 -0
  347. data/pkg/steam-condenser-1.2.0/test/core_ext/test_stringio.rb +59 -0
  348. data/pkg/steam-condenser-1.2.0/test/fixtures/invalid.xml +2 -0
  349. data/pkg/steam-condenser-1.2.0/test/fixtures/sonofthor.xml +882 -0
  350. data/pkg/steam-condenser-1.2.0/test/fixtures/status_goldsrc +3 -0
  351. data/pkg/steam-condenser-1.2.0/test/fixtures/status_source +3 -0
  352. data/pkg/steam-condenser-1.2.0/test/fixtures/valve-members.xml +231 -0
  353. data/pkg/steam-condenser-1.2.0/test/helper.rb +45 -0
  354. data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_group.rb +83 -0
  355. data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_id.rb +111 -0
  356. data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_web_api.rb +98 -0
  357. data/pkg/steam-condenser-1.2.0/test/steam/packets/test_steam_packet.rb +37 -0
  358. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_game_server.rb +296 -0
  359. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_goldsrc_server.rb +59 -0
  360. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_master_server.rb +131 -0
  361. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_server.rb +72 -0
  362. data/pkg/steam-condenser-1.2.0/test/steam/servers/test_source_server.rb +126 -0
  363. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_goldsrc_socket.rb +127 -0
  364. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_master_server_socket.rb +42 -0
  365. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_rcon_socket.rb +109 -0
  366. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_source_socket.rb +77 -0
  367. data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_steam_socket.rb +97 -0
  368. data/steam-condenser.gemspec +3 -3
  369. data/test/steam/communtiy/test_cacheable.rb +100 -0
  370. data/test/steam/servers/test_master_server.rb +3 -3
  371. metadata +366 -15
@@ -0,0 +1,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: GameClass
8
+
9
+ &mdash; Steam Condenser – Ruby API
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (G)</a> &raquo;
35
+
36
+
37
+ <span class="title">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: 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="DoDSClass (class)">DoDSClass</a></span>, <span class='object_link'><a href="TF2Class.html" title="TF2Class (class)">TF2Class</a></span></dd>
82
+
83
+
84
+
85
+ <dt class="r2 last">Defined in:</dt>
86
+ <dd class="r2 last">lib/steam/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
+ 15
234
+ 16
235
+ 17</pre>
236
+ </td>
237
+ <td>
238
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_class.rb', line 15</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
+ 20
294
+ 21
295
+ 22</pre>
296
+ </td>
297
+ <td>
298
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_class.rb', line 20</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 Sat Jul 21 13:09:31 2012 by
316
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
317
+ 0.8.2.1 (ruby-1.8.7).
318
+ </div>
319
+
320
+ </body>
321
+ </html>
@@ -0,0 +1,1363 @@
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: GameInventory
8
+
9
+ &mdash; Steam Condenser – Ruby API
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (G)</a> &raquo;
35
+
36
+
37
+ <span class="title">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: 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">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="Cacheable (module)">Cacheable</a></span></dd>
95
+
96
+
97
+
98
+
99
+
100
+ <dt class="r1 last">Defined in:</dt>
101
+ <dd class="r1 last">lib/steam/community/game_inventory.rb</dd>
102
+
103
+ </dl>
104
+ <div class="clear"></div>
105
+
106
+ <h2>Overview</h2><div class="docstring">
107
+ <div class="discussion">
108
+ <p>Provides basic functionality to represent an inventory of player in a game</p>
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+ <p class="tag_title">Author:</p>
116
+ <ul class="author">
117
+
118
+ <li>
119
+
120
+
121
+
122
+
123
+
124
+ <div class='inline'><p>Sebastian Staudt</p>
125
+ </div>
126
+
127
+ </li>
128
+
129
+ </ul>
130
+
131
+ </div><div id="subclasses">
132
+ <h2>Direct Known Subclasses</h2>
133
+ <p class="children"><span class='object_link'><a href="Dota2BetaInventory.html" title="Dota2BetaInventory (class)">Dota2BetaInventory</a></span>, <span class='object_link'><a href="Dota2Inventory.html" title="Dota2Inventory (class)">Dota2Inventory</a></span>, <span class='object_link'><a href="Portal2Inventory.html" title="Portal2Inventory (class)">Portal2Inventory</a></span>, <span class='object_link'><a href="TF2BetaInventory.html" title="TF2BetaInventory (class)">TF2BetaInventory</a></span>, <span class='object_link'><a href="TF2Inventory.html" title="TF2Inventory (class)">TF2Inventory</a></span></p>
134
+ </div>
135
+
136
+ <h2>Constant Summary</h2>
137
+
138
+ <dl class="constants">
139
+
140
+ <dt id="attribute_schema-classvariable" class="">@@attribute_schema =
141
+
142
+ </dt>
143
+ <dd><pre class="code"><span class='lbrace token'>{</span><span class='rbrace token'>}</span>
144
+ </pre></dd>
145
+
146
+ <dt id="item_schema-classvariable" class="">@@item_schema =
147
+
148
+ </dt>
149
+ <dd><pre class="code"><span class='lbrace token'>{</span><span class='rbrace token'>}</span>
150
+ </pre></dd>
151
+
152
+ <dt id="qualities-classvariable" class="">@@qualities =
153
+
154
+ </dt>
155
+ <dd><pre class="code"><span class='lbrace token'>{</span><span class='rbrace token'>}</span>
156
+ </pre></dd>
157
+
158
+ <dt id="schema_language-classvariable" class="">@@schema_language =
159
+
160
+ </dt>
161
+ <dd><pre class="code"><span class='string val'>'en'</span>
162
+ </pre></dd>
163
+
164
+ </dl>
165
+
166
+
167
+
168
+
169
+
170
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
171
+ <ul class="summary">
172
+
173
+ <li class="public ">
174
+ <span class="summary_signature">
175
+
176
+ <a href="#app_id-instance_method" title="#app_id (instance method)">- (Fixnum) <strong>app_id</strong> </a>
177
+
178
+
179
+
180
+ </span>
181
+
182
+
183
+
184
+
185
+ <span class="note title readonly">readonly</span>
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+ <span class="summary_desc"><div class='inline'><p>Returns the application ID of the game this inventory class belongs to.</p>
196
+ </div></span>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#items-instance_method" title="#items (instance method)">- (Array&lt;GameItem&gt;) <strong>items</strong> </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+ <span class="note title readonly">readonly</span>
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+ <span class="summary_desc"><div class='inline'><p>Returns an array of all items in this players inventory.</p>
224
+ </div></span>
225
+
226
+ </li>
227
+
228
+
229
+ <li class="public ">
230
+ <span class="summary_signature">
231
+
232
+ <a href="#user-instance_method" title="#user (instance method)">- (SteamId) <strong>user</strong> </a>
233
+
234
+
235
+
236
+ </span>
237
+
238
+
239
+
240
+
241
+ <span class="note title readonly">readonly</span>
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+ <span class="summary_desc"><div class='inline'><p>Returns the Steam ID of the player owning this inventory.</p>
252
+ </div></span>
253
+
254
+ </li>
255
+
256
+
257
+ </ul>
258
+
259
+
260
+
261
+
262
+
263
+ <h3 class="inherited">Attributes included from <span class='object_link'><a href="Cacheable.html" title="Cacheable (module)">Cacheable</a></span></h3>
264
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#fetch_time-instance_method" title="Cacheable#fetch_time (method)">#fetch_time</a></span></p>
265
+
266
+
267
+
268
+ <h2>
269
+ Class Method Summary
270
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
271
+ </h2>
272
+
273
+ <ul class="summary">
274
+
275
+ <li class="public ">
276
+ <span class="summary_signature">
277
+
278
+ <a href="#schema_language%3D-class_method" title="schema_language= (class method)">+ (Object) <strong>schema_language=</strong>(language) </a>
279
+
280
+
281
+
282
+ </span>
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+ <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>
293
+ </div></span>
294
+
295
+ </li>
296
+
297
+
298
+ </ul>
299
+
300
+ <h2>
301
+ Instance Method Summary
302
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
303
+ </h2>
304
+
305
+ <ul class="summary">
306
+
307
+ <li class="public ">
308
+ <span class="summary_signature">
309
+
310
+ <a href="#%5B%5D-instance_method" title="#[] (instance method)">- (GameItem) <strong>[]</strong>(index) </a>
311
+
312
+
313
+
314
+ </span>
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+ <span class="summary_desc"><div class='inline'><p>Returns the item at the given position in the inventory.</p>
325
+ </div></span>
326
+
327
+ </li>
328
+
329
+
330
+ <li class="public ">
331
+ <span class="summary_signature">
332
+
333
+ <a href="#attribute_schema-instance_method" title="#attribute_schema (instance method)">- (Hash&lt;String, Hash&lt;String, Object&gt;&gt;) <strong>attribute_schema</strong> </a>
334
+
335
+
336
+
337
+ </span>
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+ <span class="summary_desc"><div class='inline'><p>Returns the attribute schema.</p>
348
+ </div></span>
349
+
350
+ </li>
351
+
352
+
353
+ <li class="public ">
354
+ <span class="summary_signature">
355
+
356
+ <a href="#fetch-instance_method" title="#fetch (instance method)">- (Object) <strong>fetch</strong> </a>
357
+
358
+
359
+
360
+ </span>
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+ <span class="summary_desc"><div class='inline'><p>Updates the contents of the inventory using Steam Web API.</p>
371
+ </div></span>
372
+
373
+ </li>
374
+
375
+
376
+ <li class="public ">
377
+ <span class="summary_signature">
378
+
379
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (GameInventory) <strong>initialize</strong>(app_id, steam_id64, fetch = true, bypass_cache = false) </a>
380
+
381
+
382
+
383
+ </span>
384
+
385
+
386
+ <span class="note title constructor">constructor</span>
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+ <span class="summary_desc"><div class='inline'><p>Creates a new inventory object for the given AppID and SteamID64.</p>
396
+ </div></span>
397
+
398
+ </li>
399
+
400
+
401
+ <li class="public ">
402
+ <span class="summary_signature">
403
+
404
+ <a href="#item_schema-instance_method" title="#item_schema (instance method)">- (Hash&lt;Fixnum, Hash&lt;String, Object&gt;&gt;) <strong>item_schema</strong> </a>
405
+
406
+
407
+
408
+ </span>
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+ <span class="summary_desc"><div class='inline'><p>Returns the item schema.</p>
419
+ </div></span>
420
+
421
+ </li>
422
+
423
+
424
+ <li class="public ">
425
+ <span class="summary_signature">
426
+
427
+ <a href="#qualities-instance_method" title="#qualities (instance method)">- (Hash&lt;Fixnum, String&gt;) <strong>qualities</strong> </a>
428
+
429
+
430
+
431
+ </span>
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+ <span class="summary_desc"><div class='inline'><p>Returns the quality schema.</p>
442
+ </div></span>
443
+
444
+ </li>
445
+
446
+
447
+ <li class="public ">
448
+ <span class="summary_signature">
449
+
450
+ <a href="#size-instance_method" title="#size (instance method)">- (Fixnum) <strong>size</strong> </a>
451
+
452
+
453
+
454
+ </span>
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+ <span class="summary_desc"><div class='inline'><p>Returns the number of items in the user&#39;s inventory.</p>
465
+ </div></span>
466
+
467
+ </li>
468
+
469
+
470
+ <li class="protected ">
471
+ <span class="summary_signature">
472
+
473
+ <a href="#update_schema-instance_method" title="#update_schema (instance method)">- (Object) <strong>update_schema</strong> </a>
474
+
475
+
476
+
477
+ </span>
478
+
479
+
480
+
481
+ <span class="note title protected">protected</span>
482
+
483
+
484
+
485
+
486
+
487
+ <span class="summary_desc"><div class='inline'><p>Updates the item schema (this includes attributes and qualities) using the
488
+ <code>GetSchema</code> method of interface <code>IEconItems_[AppID]</code>.</p>
489
+ </div></span>
490
+
491
+ </li>
492
+
493
+
494
+ </ul>
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Cacheable.html" title="Cacheable (module)">Cacheable</a></span></h3>
507
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#cache-instance_method" title="Cacheable#cache (method)">#cache</a></span>, <span class='object_link'><a href="Cacheable.html#cache_id_value-instance_method" title="Cacheable#cache_id_value (method)">#cache_id_value</a></span>, <span class='object_link'><a href="Cacheable.html#cache_ids-instance_method" title="Cacheable#cache_ids (method)">#cache_ids</a></span>, <span class='object_link'><a href="Cacheable.html#cached_instance-instance_method" title="Cacheable#cached_instance (method)">#cached_instance</a></span>, <span class='object_link'><a href="Cacheable.html#fetched%3F-instance_method" title="Cacheable#fetched? (method)">#fetched?</a></span>, <span class='object_link'><a href="Cacheable.html#included-class_method" title="Cacheable.included (method)">included</a></span></p>
508
+ <div id="constructor_details" class="method_details_list">
509
+ <h2>Constructor Details</h2>
510
+
511
+ <div class="method_details first">
512
+ <h3 class="signature first" id="initialize-instance_method">
513
+
514
+ - (<tt><span class='object_link'><a href="" title="GameInventory (class)">GameInventory</a></span></tt>) <strong>initialize</strong>(app_id, steam_id64, fetch = true, bypass_cache = false)
515
+
516
+
517
+
518
+
519
+
520
+ </h3><div class="docstring">
521
+ <div class="discussion">
522
+ <p>Creates a new inventory object for the given AppID and SteamID64. This
523
+ calls update to fetch the data and create the item instances contained in
524
+ this players backpack</p>
525
+
526
+
527
+ </div>
528
+ </div>
529
+ <div class="tags">
530
+
531
+
532
+ <p class="tag_title">Parameters:</p>
533
+ <ul class="param">
534
+
535
+ <li>
536
+
537
+ <span class='name'>app_id</span>
538
+
539
+
540
+ <span class='type'>(<tt>Fixnum</tt>)</span>
541
+
542
+
543
+
544
+ &mdash;
545
+ <div class='inline'><p>The application ID of the game</p>
546
+ </div>
547
+
548
+ </li>
549
+
550
+ <li>
551
+
552
+ <span class='name'>steam_id64</span>
553
+
554
+
555
+ <span class='type'>(<tt>Fixnum</tt>)</span>
556
+
557
+
558
+
559
+ &mdash;
560
+ <div class='inline'><p>The 64bit SteamID of the player to get the
561
+ inventory for</p>
562
+ </div>
563
+
564
+ </li>
565
+
566
+ <li>
567
+
568
+ <span class='name'>fetch</span>
569
+
570
+
571
+ <span class='type'>(<tt>Boolean</tt>)</span>
572
+
573
+
574
+
575
+ &mdash;
576
+ <div class='inline'><p>if <code>true</code> the object&#39;s data is fetched after
577
+ creation</p>
578
+ </div>
579
+
580
+ </li>
581
+
582
+ <li>
583
+
584
+ <span class='name'>bypass_cache</span>
585
+
586
+
587
+ <span class='type'>(<tt>Boolean</tt>)</span>
588
+
589
+
590
+
591
+ &mdash;
592
+ <div class='inline'><p>if <code>true</code> the object&#39;s data is fetched again
593
+ even if it has been cached already</p>
594
+ </div>
595
+
596
+ </li>
597
+
598
+ </ul>
599
+
600
+
601
+ </div><table class="source_code">
602
+ <tr>
603
+ <td>
604
+ <pre class="lines">
605
+
606
+
607
+ 56
608
+ 57
609
+ 58
610
+ 59
611
+ 60</pre>
612
+ </td>
613
+ <td>
614
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 56</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_@app_id ivar id'>@app_id</span> <span class='assign token'>=</span> <span class='rubyid_app_id identifier id'>app_id</span>
618
+ <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>
619
+ <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>
620
+ <span class='rubyid_end end kw'>end</span>
621
+ </pre>
622
+ </td>
623
+ </tr>
624
+ </table>
625
+ </div>
626
+
627
+ </div>
628
+
629
+ <div id="instance_attr_details" class="attr_details">
630
+ <h2>Instance Attribute Details</h2>
631
+
632
+
633
+ <span id=""></span>
634
+ <div class="method_details first">
635
+ <h3 class="signature first" id="app_id-instance_method">
636
+
637
+ - (<tt>Fixnum</tt>) <strong>app_id</strong> <span class="extras">(readonly)</span>
638
+
639
+
640
+
641
+
642
+
643
+ </h3><div class="docstring">
644
+ <div class="discussion">
645
+ <p>Returns the application ID of the game this inventory class belongs to</p>
646
+
647
+
648
+ </div>
649
+ </div>
650
+ <div class="tags">
651
+
652
+ <p class="tag_title">Returns:</p>
653
+ <ul class="return">
654
+
655
+ <li>
656
+
657
+
658
+ <span class='type'>(<tt>Fixnum</tt>)</span>
659
+
660
+
661
+
662
+ &mdash;
663
+ <div class='inline'><p>The application ID of the game</p>
664
+ </div>
665
+
666
+ </li>
667
+
668
+ </ul>
669
+
670
+ </div><table class="source_code">
671
+ <tr>
672
+ <td>
673
+ <pre class="lines">
674
+
675
+
676
+ 21
677
+ 22
678
+ 23</pre>
679
+ </td>
680
+ <td>
681
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 21</span>
682
+
683
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_app_id identifier id'>app_id</span>
684
+ <span class='rubyid_@app_id ivar id'>@app_id</span>
685
+ <span class='rubyid_end end kw'>end</span>
686
+ </pre>
687
+ </td>
688
+ </tr>
689
+ </table>
690
+ </div>
691
+
692
+
693
+ <span id=""></span>
694
+ <div class="method_details ">
695
+ <h3 class="signature " id="items-instance_method">
696
+
697
+ - (<tt>Array&lt;<span class='object_link'><a href="GameItem.html" title="GameItem (module)">GameItem</a></span>&gt;</tt>) <strong>items</strong> <span class="extras">(readonly)</span>
698
+
699
+
700
+
701
+
702
+
703
+ </h3><div class="docstring">
704
+ <div class="discussion">
705
+ <p>Returns an array of all items in this players inventory.</p>
706
+
707
+
708
+ </div>
709
+ </div>
710
+ <div class="tags">
711
+
712
+ <p class="tag_title">Returns:</p>
713
+ <ul class="return">
714
+
715
+ <li>
716
+
717
+
718
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="GameItem.html" title="GameItem (module)">GameItem</a></span>&gt;</tt>)</span>
719
+
720
+
721
+
722
+ &mdash;
723
+ <div class='inline'><p>All items in the backpack</p>
724
+ </div>
725
+
726
+ </li>
727
+
728
+ </ul>
729
+
730
+ </div><table class="source_code">
731
+ <tr>
732
+ <td>
733
+ <pre class="lines">
734
+
735
+
736
+ 26
737
+ 27
738
+ 28</pre>
739
+ </td>
740
+ <td>
741
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 26</span>
742
+
743
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_items identifier id'>items</span>
744
+ <span class='rubyid_@items ivar id'>@items</span>
745
+ <span class='rubyid_end end kw'>end</span>
746
+ </pre>
747
+ </td>
748
+ </tr>
749
+ </table>
750
+ </div>
751
+
752
+
753
+ <span id=""></span>
754
+ <div class="method_details ">
755
+ <h3 class="signature " id="user-instance_method">
756
+
757
+ - (<tt><span class='object_link'><a href="SteamId.html" title="SteamId (class)">SteamId</a></span></tt>) <strong>user</strong> <span class="extras">(readonly)</span>
758
+
759
+
760
+
761
+
762
+
763
+ </h3><div class="docstring">
764
+ <div class="discussion">
765
+ <p>Returns the Steam ID of the player owning this inventory</p>
766
+
767
+
768
+ </div>
769
+ </div>
770
+ <div class="tags">
771
+
772
+ <p class="tag_title">Returns:</p>
773
+ <ul class="return">
774
+
775
+ <li>
776
+
777
+
778
+ <span class='type'>(<tt><span class='object_link'><a href="SteamId.html" title="SteamId (class)">SteamId</a></span></tt>)</span>
779
+
780
+
781
+
782
+ &mdash;
783
+ <div class='inline'><p>The Steam ID of the owner of this inventory</p>
784
+ </div>
785
+
786
+ </li>
787
+
788
+ </ul>
789
+
790
+ </div><table class="source_code">
791
+ <tr>
792
+ <td>
793
+ <pre class="lines">
794
+
795
+
796
+ 31
797
+ 32
798
+ 33</pre>
799
+ </td>
800
+ <td>
801
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 31</span>
802
+
803
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_user identifier id'>user</span>
804
+ <span class='rubyid_@user ivar id'>@user</span>
805
+ <span class='rubyid_end end kw'>end</span>
806
+ </pre>
807
+ </td>
808
+ </tr>
809
+ </table>
810
+ </div>
811
+
812
+ </div>
813
+
814
+
815
+ <div id="class_method_details" class="method_details_list">
816
+ <h2>Class Method Details</h2>
817
+
818
+
819
+ <div class="method_details first">
820
+ <h3 class="signature first" id="schema_language=-class_method">
821
+
822
+ + (<tt>Object</tt>) <strong>schema_language=</strong>(language)
823
+
824
+
825
+
826
+
827
+
828
+ </h3><div class="docstring">
829
+ <div class="discussion">
830
+ <p>Sets the language the schema should be fetched in (default is: <code>&#39;en&#39;</code>)</p>
831
+
832
+
833
+ </div>
834
+ </div>
835
+ <div class="tags">
836
+ <p class="tag_title">Parameters:</p>
837
+ <ul class="param">
838
+
839
+ <li>
840
+
841
+ <span class='name'>language</span>
842
+
843
+
844
+ <span class='type'>(<tt>String</tt>)</span>
845
+
846
+
847
+
848
+ &mdash;
849
+ <div class='inline'><p>The ISO 639-1 code of the schema language</p>
850
+ </div>
851
+
852
+ </li>
853
+
854
+ </ul>
855
+
856
+
857
+ </div><table class="source_code">
858
+ <tr>
859
+ <td>
860
+ <pre class="lines">
861
+
862
+
863
+ 44
864
+ 45
865
+ 46</pre>
866
+ </td>
867
+ <td>
868
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 44</span>
869
+
870
+ <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>
871
+ <span class='rubyid_@@schema_language ivar id'>@@schema_language</span> <span class='assign token'>=</span> <span class='rubyid_language identifier id'>language</span>
872
+ <span class='rubyid_end end kw'>end</span>
873
+ </pre>
874
+ </td>
875
+ </tr>
876
+ </table>
877
+ </div>
878
+
879
+ </div>
880
+
881
+ <div id="instance_method_details" class="method_details_list">
882
+ <h2>Instance Method Details</h2>
883
+
884
+
885
+ <div class="method_details first">
886
+ <h3 class="signature first" id="[]-instance_method">
887
+
888
+ - (<tt><span class='object_link'><a href="GameItem.html" title="GameItem (module)">GameItem</a></span></tt>) <strong>[]</strong>(index)
889
+
890
+
891
+
892
+
893
+
894
+ </h3><div class="docstring">
895
+ <div class="discussion">
896
+ <p>Returns the item at the given position in the inventory. The positions
897
+ range from 1 to 100 instead of the usual array indices (0 to 99).</p>
898
+
899
+
900
+ </div>
901
+ </div>
902
+ <div class="tags">
903
+
904
+ <p class="tag_title">Returns:</p>
905
+ <ul class="return">
906
+
907
+ <li>
908
+
909
+
910
+ <span class='type'>(<tt><span class='object_link'><a href="GameItem.html" title="GameItem (module)">GameItem</a></span></tt>)</span>
911
+
912
+
913
+
914
+ &mdash;
915
+ <div class='inline'><p>The item at the given position in the inventory</p>
916
+ </div>
917
+
918
+ </li>
919
+
920
+ </ul>
921
+
922
+ </div><table class="source_code">
923
+ <tr>
924
+ <td>
925
+ <pre class="lines">
926
+
927
+
928
+ 66
929
+ 67
930
+ 68</pre>
931
+ </td>
932
+ <td>
933
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 66</span>
934
+
935
+ <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>
936
+ <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>
937
+ <span class='rubyid_end end kw'>end</span>
938
+ </pre>
939
+ </td>
940
+ </tr>
941
+ </table>
942
+ </div>
943
+
944
+ <div class="method_details ">
945
+ <h3 class="signature " id="attribute_schema-instance_method">
946
+
947
+ - (<tt>Hash&lt;String, Hash&lt;String, Object&gt;&gt;</tt>) <strong>attribute_schema</strong>
948
+
949
+
950
+
951
+
952
+
953
+ </h3><div class="docstring">
954
+ <div class="discussion">
955
+ <p>Returns the attribute schema</p>
956
+
957
+ <p>The schemas are fetched first if not done already</p>
958
+
959
+
960
+ </div>
961
+ </div>
962
+ <div class="tags">
963
+
964
+ <p class="tag_title">Returns:</p>
965
+ <ul class="return">
966
+
967
+ <li>
968
+
969
+
970
+ <span class='type'>(<tt>Hash&lt;String, Hash&lt;String, Object&gt;&gt;</tt>)</span>
971
+
972
+
973
+
974
+ &mdash;
975
+ <div class='inline'><p>The attribute schema for the
976
+ game this inventory belongs to</p>
977
+ </div>
978
+
979
+ </li>
980
+
981
+ </ul>
982
+
983
+ <p class="tag_title">See Also:</p>
984
+ <ul class="see">
985
+
986
+ <li><span class='object_link'><a href="#update_schema-instance_method" title="GameInventory#update_schema (method)">#update_schema</a></span></li>
987
+
988
+ </ul>
989
+
990
+ </div><table class="source_code">
991
+ <tr>
992
+ <td>
993
+ <pre class="lines">
994
+
995
+
996
+ 77
997
+ 78
998
+ 79
999
+ 80
1000
+ 81</pre>
1001
+ </td>
1002
+ <td>
1003
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 77</span>
1004
+
1005
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_attribute_schema identifier id'>attribute_schema</span>
1006
+ <span class='rubyid_update_schema identifier id'>update_schema</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_@@attribute_schema ivar id'>@@attribute_schema</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='rubyid_app_id identifier id'>app_id</span>
1007
+
1008
+ <span class='rubyid_@@attribute_schema ivar id'>@@attribute_schema</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span>
1009
+ <span class='rubyid_end end kw'>end</span>
1010
+ </pre>
1011
+ </td>
1012
+ </tr>
1013
+ </table>
1014
+ </div>
1015
+
1016
+ <div class="method_details ">
1017
+ <h3 class="signature " id="fetch-instance_method">
1018
+
1019
+ - (<tt>Object</tt>) <strong>fetch</strong>
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+ </h3><div class="docstring">
1026
+ <div class="discussion">
1027
+ <p>Updates the contents of the inventory using Steam Web API</p>
1028
+
1029
+
1030
+ </div>
1031
+ </div>
1032
+ <div class="tags">
1033
+
1034
+
1035
+ </div><table class="source_code">
1036
+ <tr>
1037
+ <td>
1038
+ <pre class="lines">
1039
+
1040
+
1041
+ 84
1042
+ 85
1043
+ 86
1044
+ 87
1045
+ 88
1046
+ 89
1047
+ 90
1048
+ 91
1049
+ 92
1050
+ 93
1051
+ 94
1052
+ 95</pre>
1053
+ </td>
1054
+ <td>
1055
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 84</span>
1056
+
1057
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_fetch identifier id'>fetch</span>
1058
+ <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='lparen token'>(</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='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><span class='rparen token'>)</span>
1059
+ <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>
1060
+
1061
+ <span class='rubyid_@items ivar id'>@items</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1062
+ <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>
1063
+ <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>
1064
+ <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>
1065
+ <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>
1066
+ <span class='rubyid_end end kw'>end</span>
1067
+ <span class='rubyid_end end kw'>end</span>
1068
+ <span class='rubyid_end end kw'>end</span>
1069
+ </pre>
1070
+ </td>
1071
+ </tr>
1072
+ </table>
1073
+ </div>
1074
+
1075
+ <div class="method_details ">
1076
+ <h3 class="signature " id="item_schema-instance_method">
1077
+
1078
+ - (<tt>Hash&lt;Fixnum, Hash&lt;String, Object&gt;&gt;</tt>) <strong>item_schema</strong>
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+ </h3><div class="docstring">
1085
+ <div class="discussion">
1086
+ <p>Returns the item schema</p>
1087
+
1088
+ <p>The schemas are fetched first if not done already</p>
1089
+
1090
+
1091
+ </div>
1092
+ </div>
1093
+ <div class="tags">
1094
+
1095
+ <p class="tag_title">Returns:</p>
1096
+ <ul class="return">
1097
+
1098
+ <li>
1099
+
1100
+
1101
+ <span class='type'>(<tt>Hash&lt;Fixnum, Hash&lt;String, Object&gt;&gt;</tt>)</span>
1102
+
1103
+
1104
+
1105
+ &mdash;
1106
+ <div class='inline'><p>The item schema for the game
1107
+ this inventory belongs to</p>
1108
+ </div>
1109
+
1110
+ </li>
1111
+
1112
+ </ul>
1113
+
1114
+ <p class="tag_title">See Also:</p>
1115
+ <ul class="see">
1116
+
1117
+ <li>#upde_schema</li>
1118
+
1119
+ </ul>
1120
+
1121
+ </div><table class="source_code">
1122
+ <tr>
1123
+ <td>
1124
+ <pre class="lines">
1125
+
1126
+
1127
+ 104
1128
+ 105
1129
+ 106
1130
+ 107
1131
+ 108</pre>
1132
+ </td>
1133
+ <td>
1134
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 104</span>
1135
+
1136
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_item_schema identifier id'>item_schema</span>
1137
+ <span class='rubyid_update_schema identifier id'>update_schema</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_@@item_schema ivar id'>@@item_schema</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='rubyid_app_id identifier id'>app_id</span>
1138
+
1139
+ <span class='rubyid_@@item_schema ivar id'>@@item_schema</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span>
1140
+ <span class='rubyid_end end kw'>end</span>
1141
+ </pre>
1142
+ </td>
1143
+ </tr>
1144
+ </table>
1145
+ </div>
1146
+
1147
+ <div class="method_details ">
1148
+ <h3 class="signature " id="qualities-instance_method">
1149
+
1150
+ - (<tt>Hash&lt;Fixnum, String&gt;</tt>) <strong>qualities</strong>
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+ </h3><div class="docstring">
1157
+ <div class="discussion">
1158
+ <p>Returns the quality schema</p>
1159
+
1160
+ <p>The schemas are fetched first if not done already</p>
1161
+
1162
+
1163
+ </div>
1164
+ </div>
1165
+ <div class="tags">
1166
+
1167
+ <p class="tag_title">Returns:</p>
1168
+ <ul class="return">
1169
+
1170
+ <li>
1171
+
1172
+
1173
+ <span class='type'>(<tt>Hash&lt;Fixnum, String&gt;</tt>)</span>
1174
+
1175
+
1176
+
1177
+ &mdash;
1178
+ <div class='inline'><p>The quality schema for this game</p>
1179
+ </div>
1180
+
1181
+ </li>
1182
+
1183
+ </ul>
1184
+
1185
+ <p class="tag_title">See Also:</p>
1186
+ <ul class="see">
1187
+
1188
+ <li><span class='object_link'><a href="#update_schema-instance_method" title="GameInventory#update_schema (method)">#update_schema</a></span></li>
1189
+
1190
+ </ul>
1191
+
1192
+ </div><table class="source_code">
1193
+ <tr>
1194
+ <td>
1195
+ <pre class="lines">
1196
+
1197
+
1198
+ 116
1199
+ 117
1200
+ 118
1201
+ 119
1202
+ 120</pre>
1203
+ </td>
1204
+ <td>
1205
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 116</span>
1206
+
1207
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_qualities identifier id'>qualities</span>
1208
+ <span class='rubyid_update_schema identifier id'>update_schema</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_@@qualities ivar id'>@@qualities</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='rubyid_app_id identifier id'>app_id</span>
1209
+
1210
+ <span class='rubyid_@@qualities ivar id'>@@qualities</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span>
1211
+ <span class='rubyid_end end kw'>end</span>
1212
+ </pre>
1213
+ </td>
1214
+ </tr>
1215
+ </table>
1216
+ </div>
1217
+
1218
+ <div class="method_details ">
1219
+ <h3 class="signature " id="size-instance_method">
1220
+
1221
+ - (<tt>Fixnum</tt>) <strong>size</strong>
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+ </h3><div class="docstring">
1228
+ <div class="discussion">
1229
+ <p>Returns the number of items in the user&#39;s inventory</p>
1230
+
1231
+
1232
+ </div>
1233
+ </div>
1234
+ <div class="tags">
1235
+
1236
+ <p class="tag_title">Returns:</p>
1237
+ <ul class="return">
1238
+
1239
+ <li>
1240
+
1241
+
1242
+ <span class='type'>(<tt>Fixnum</tt>)</span>
1243
+
1244
+
1245
+
1246
+ &mdash;
1247
+ <div class='inline'><p> The number of items in the inventory</p>
1248
+ </div>
1249
+
1250
+ </li>
1251
+
1252
+ </ul>
1253
+
1254
+ </div><table class="source_code">
1255
+ <tr>
1256
+ <td>
1257
+ <pre class="lines">
1258
+
1259
+
1260
+ 125
1261
+ 126
1262
+ 127</pre>
1263
+ </td>
1264
+ <td>
1265
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 125</span>
1266
+
1267
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_size identifier id'>size</span>
1268
+ <span class='rubyid_@items ivar id'>@items</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span>
1269
+ <span class='rubyid_end end kw'>end</span>
1270
+ </pre>
1271
+ </td>
1272
+ </tr>
1273
+ </table>
1274
+ </div>
1275
+
1276
+ <div class="method_details ">
1277
+ <h3 class="signature " id="update_schema-instance_method">
1278
+
1279
+ - (<tt>Object</tt>) <strong>update_schema</strong> <span class="extras">(protected)</span>
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+ </h3><div class="docstring">
1286
+ <div class="discussion">
1287
+ <p>Updates the item schema (this includes attributes and qualities) using the
1288
+ <code>GetSchema</code> method of interface <code>IEconItems_[AppID]</code></p>
1289
+
1290
+
1291
+ </div>
1292
+ </div>
1293
+ <div class="tags">
1294
+
1295
+
1296
+ </div><table class="source_code">
1297
+ <tr>
1298
+ <td>
1299
+ <pre class="lines">
1300
+
1301
+
1302
+ 133
1303
+ 134
1304
+ 135
1305
+ 136
1306
+ 137
1307
+ 138
1308
+ 139
1309
+ 140
1310
+ 141
1311
+ 142
1312
+ 143
1313
+ 144
1314
+ 145
1315
+ 146
1316
+ 147
1317
+ 148
1318
+ 149
1319
+ 150
1320
+ 151
1321
+ 152</pre>
1322
+ </td>
1323
+ <td>
1324
+ <pre class="code"><span class="info file"># File 'lib/steam/community/game_inventory.rb', line 133</span>
1325
+
1326
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_update_schema identifier id'>update_schema</span>
1327
+ <span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
1328
+ <span class='rubyid_params identifier id'>params</span><span class='lbrack token'>[</span><span class='symbol val'>:language</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_@@schema_language ivar id'>@@schema_language</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_@@schema_language ivar id'>@@schema_language</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
1329
+ <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='lparen token'>(</span><span class='dstring node'>&quot;IEconItems_#{app_id}&quot;</span><span class='comma token'>,</span> <span class='string val'>'GetSchema'</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><span class='rparen token'>)</span>
1330
+
1331
+ <span class='rubyid_@@attribute_schema ivar id'>@@attribute_schema</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
1332
+ <span class='rubyid_result identifier id'>result</span><span class='lbrack token'>[</span><span class='symbol val'>:attributes</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_attribute_data identifier id'>attribute_data</span><span class='bitor op'>|</span>
1333
+ <span class='rubyid_@@attribute_schema ivar id'>@@attribute_schema</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_attribute_data identifier id'>attribute_data</span><span class='lbrack token'>[</span><span class='symbol val'>:name</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_attribute_data identifier id'>attribute_data</span>
1334
+ <span class='rubyid_end end kw'>end</span>
1335
+
1336
+ <span class='rubyid_@@item_schema ivar id'>@@item_schema</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1337
+ <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>
1338
+ <span class='rubyid_@@item_schema ivar id'>@@item_schema</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_item_data identifier id'>item_data</span><span class='lbrack token'>[</span><span class='symbol val'>:defindex</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_item_data identifier id'>item_data</span>
1339
+ <span class='rubyid_end end kw'>end</span>
1340
+
1341
+ <span class='rubyid_@@qualities ivar id'>@@qualities</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1342
+ <span class='rubyid_result identifier id'>result</span><span class='lbrack token'>[</span><span class='symbol val'>:qualities</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_quality identifier id'>quality</span><span class='comma token'>,</span> <span class='rubyid_id identifier id'>id</span><span class='bitor op'>|</span>
1343
+ <span class='rubyid_@@qualities ivar id'>@@qualities</span><span class='lbrack token'>[</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='rubyid_id identifier id'>id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_quality identifier id'>quality</span>
1344
+ <span class='rubyid_end end kw'>end</span>
1345
+ <span class='rubyid_end end kw'>end</span>
1346
+ </pre>
1347
+ </td>
1348
+ </tr>
1349
+ </table>
1350
+ </div>
1351
+
1352
+ </div>
1353
+
1354
+ </div>
1355
+
1356
+ <div id="footer">
1357
+ Generated on Sat Jul 21 13:09:44 2012 by
1358
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1359
+ 0.8.2.1 (ruby-1.8.7).
1360
+ </div>
1361
+
1362
+ </body>
1363
+ </html>