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