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,4242 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: SteamCondenser::SteamId
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
+ 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 (S)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../SteamCondenser.html" title="SteamCondenser (module)">SteamCondenser</a></span></span>
38
+ &raquo;
39
+ <span class="title">SteamId</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>Class: SteamCondenser::SteamId
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">SteamCondenser::SteamId</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+ <dt class="r2">Includes:</dt>
87
+ <dd class="r2"><span class='object_link'><a href="Cacheable.html" title="SteamCondenser::Cacheable (module)">Cacheable</a></span>, <span class='object_link'><a href="XMLData.html" title="SteamCondenser::XMLData (module)">XMLData</a></span></dd>
88
+
89
+
90
+
91
+
92
+
93
+ <dt class="r1 last">Defined in:</dt>
94
+ <dd class="r1 last">lib/steam/community/steam_id.rb</dd>
95
+
96
+ </dl>
97
+ <div class="clear"></div>
98
+
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+ <p>The SteamId class represents a Steam Community profile (also called Steam
102
+ ID)</p>
103
+
104
+
105
+ </div>
106
+ </div>
107
+ <div class="tags">
108
+
109
+ <h3>Author:</h3>
110
+ <ul class="author">
111
+
112
+ <li>
113
+
114
+
115
+
116
+
117
+
118
+ <div class='inline'><p>Sebastian Staudt</p>
119
+ </div>
120
+
121
+ </li>
122
+
123
+ </ul>
124
+
125
+ </div>
126
+
127
+
128
+
129
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
130
+ <ul class="summary">
131
+
132
+ <li class="public ">
133
+ <span class="summary_signature">
134
+
135
+ <a href="#custom_url-instance_method" title="#custom_url (instance method)">- (String) <strong>custom_url</strong> </a>
136
+
137
+
138
+
139
+ </span>
140
+
141
+
142
+ <span class="note title readonly">readonly</span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+ <span class="summary_desc"><div class='inline'><p>Returns the custom URL of this Steam ID.</p>
152
+ </div></span>
153
+
154
+ </li>
155
+
156
+
157
+ <li class="public deprecated">
158
+ <span class="summary_signature">
159
+
160
+ <a href="#favorite_game-instance_method" title="#favorite_game (instance method)">- (String) <strong>favorite_game</strong> </a>
161
+
162
+
163
+
164
+ </span>
165
+
166
+
167
+ <span class="note title readonly">readonly</span>
168
+
169
+
170
+
171
+
172
+ <span class="deprecated note title">Deprecated</span>
173
+
174
+
175
+
176
+ <span class="summary_desc"><strong>Deprecated.</strong> <div class='inline'><p>The favorite game is no longer listed for new users</p>
177
+ </div></span>
178
+
179
+ </li>
180
+
181
+
182
+ <li class="public deprecated">
183
+ <span class="summary_signature">
184
+
185
+ <a href="#favorite_game_hours_played-instance_method" title="#favorite_game_hours_played (instance method)">- (String) <strong>favorite_game_hours_played</strong> </a>
186
+
187
+
188
+
189
+ </span>
190
+
191
+
192
+ <span class="note title readonly">readonly</span>
193
+
194
+
195
+
196
+
197
+ <span class="deprecated note title">Deprecated</span>
198
+
199
+
200
+
201
+ <span class="summary_desc"><strong>Deprecated.</strong> <div class='inline'><p>The favorite game is no longer listed for new users</p>
202
+ </div></span>
203
+
204
+ </li>
205
+
206
+
207
+ <li class="public ">
208
+ <span class="summary_signature">
209
+
210
+ <a href="#groups-instance_method" title="#groups (instance method)">- (Array&lt;SteamGroup&gt;) <strong>groups</strong> </a>
211
+
212
+
213
+
214
+ </span>
215
+
216
+
217
+ <span class="note title readonly">readonly</span>
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ <span class="summary_desc"><div class='inline'><p>Returns the groups this user is a member of.</p>
227
+ </div></span>
228
+
229
+ </li>
230
+
231
+
232
+ <li class="public ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#head_line-instance_method" title="#head_line (instance method)">- (String) <strong>head_line</strong> </a>
236
+
237
+
238
+
239
+ </span>
240
+
241
+
242
+ <span class="note title readonly">readonly</span>
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+ <span class="summary_desc"><div class='inline'><p>Returns the headline specified by the user.</p>
252
+ </div></span>
253
+
254
+ </li>
255
+
256
+
257
+ <li class="public ">
258
+ <span class="summary_signature">
259
+
260
+ <a href="#hours_played-instance_method" title="#hours_played (instance method)">- (Float) <strong>hours_played</strong> </a>
261
+
262
+
263
+
264
+ </span>
265
+
266
+
267
+ <span class="note title readonly">readonly</span>
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ <span class="summary_desc"><div class='inline'><p>Returns the number of hours that this user played a game in the last two
277
+ weeks.</p>
278
+ </div></span>
279
+
280
+ </li>
281
+
282
+
283
+ <li class="public ">
284
+ <span class="summary_signature">
285
+
286
+ <a href="#links-instance_method" title="#links (instance method)">- (Hash&lt;String, String&gt;) <strong>links</strong> </a>
287
+
288
+
289
+
290
+ </span>
291
+
292
+
293
+ <span class="note title readonly">readonly</span>
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <span class="summary_desc"><div class='inline'><p>Returns the links that this user has added to his/her Steam ID.</p>
303
+ </div></span>
304
+
305
+ </li>
306
+
307
+
308
+ <li class="public ">
309
+ <span class="summary_signature">
310
+
311
+ <a href="#location-instance_method" title="#location (instance method)">- (String) <strong>location</strong> </a>
312
+
313
+
314
+
315
+ </span>
316
+
317
+
318
+ <span class="note title readonly">readonly</span>
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+ <span class="summary_desc"><div class='inline'><p>Returns the location of the user.</p>
328
+ </div></span>
329
+
330
+ </li>
331
+
332
+
333
+ <li class="public ">
334
+ <span class="summary_signature">
335
+
336
+ <a href="#member_since-instance_method" title="#member_since (instance method)">- (Time) <strong>member_since</strong> </a>
337
+
338
+
339
+
340
+ </span>
341
+
342
+
343
+ <span class="note title readonly">readonly</span>
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+ <span class="summary_desc"><div class='inline'><p>Returns the date of registration for the Steam account belonging to this
353
+ SteamID.</p>
354
+ </div></span>
355
+
356
+ </li>
357
+
358
+
359
+ <li class="public ">
360
+ <span class="summary_signature">
361
+
362
+ <a href="#most_played_games-instance_method" title="#most_played_games (instance method)">- (Hash&lt;String, Float&gt;) <strong>most_played_games</strong> </a>
363
+
364
+
365
+
366
+ </span>
367
+
368
+
369
+ <span class="note title readonly">readonly</span>
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+ <span class="summary_desc"><div class='inline'><p>Returns the games this user has played the most in the last two weeks.</p>
379
+ </div></span>
380
+
381
+ </li>
382
+
383
+
384
+ <li class="public ">
385
+ <span class="summary_signature">
386
+
387
+ <a href="#nickname-instance_method" title="#nickname (instance method)">- (String) <strong>nickname</strong> </a>
388
+
389
+
390
+
391
+ </span>
392
+
393
+
394
+ <span class="note title readonly">readonly</span>
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+ <span class="summary_desc"><div class='inline'><p>Returns the Steam nickname of the user.</p>
404
+ </div></span>
405
+
406
+ </li>
407
+
408
+
409
+ <li class="public ">
410
+ <span class="summary_signature">
411
+
412
+ <a href="#privacy_state-instance_method" title="#privacy_state (instance method)">- (String) <strong>privacy_state</strong> </a>
413
+
414
+
415
+
416
+ </span>
417
+
418
+
419
+ <span class="note title readonly">readonly</span>
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ <span class="summary_desc"><div class='inline'><p>Returns the privacy state of this Steam ID.</p>
429
+ </div></span>
430
+
431
+ </li>
432
+
433
+
434
+ <li class="public ">
435
+ <span class="summary_signature">
436
+
437
+ <a href="#real_name-instance_method" title="#real_name (instance method)">- (String) <strong>real_name</strong> </a>
438
+
439
+
440
+
441
+ </span>
442
+
443
+
444
+ <span class="note title readonly">readonly</span>
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+ <span class="summary_desc"><div class='inline'><p>Returns the real name of this user.</p>
454
+ </div></span>
455
+
456
+ </li>
457
+
458
+
459
+ <li class="public ">
460
+ <span class="summary_signature">
461
+
462
+ <a href="#state_message-instance_method" title="#state_message (instance method)">- (String) <strong>state_message</strong> </a>
463
+
464
+
465
+
466
+ </span>
467
+
468
+
469
+ <span class="note title readonly">readonly</span>
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+ <span class="summary_desc"><div class='inline'><p>Returns the message corresponding to this user&#39;s online state.</p>
479
+ </div></span>
480
+
481
+ </li>
482
+
483
+
484
+ <li class="public ">
485
+ <span class="summary_signature">
486
+
487
+ <a href="#steam_id64-instance_method" title="#steam_id64 (instance method)">- (Fixnum) <strong>steam_id64</strong> </a>
488
+
489
+
490
+
491
+ </span>
492
+
493
+
494
+ <span class="note title readonly">readonly</span>
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+ <span class="summary_desc"><div class='inline'><p>Returns this user&#39;s 64bit SteamID.</p>
504
+ </div></span>
505
+
506
+ </li>
507
+
508
+
509
+ <li class="public ">
510
+ <span class="summary_signature">
511
+
512
+ <a href="#steam_rating-instance_method" title="#steam_rating (instance method)">- (Float) <strong>steam_rating</strong> </a>
513
+
514
+
515
+
516
+ </span>
517
+
518
+
519
+ <span class="note title readonly">readonly</span>
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+ <span class="summary_desc"><div class='inline'><p>Returns the Steam rating calculated over the last two weeks&#39; activity.</p>
529
+ </div></span>
530
+
531
+ </li>
532
+
533
+
534
+ <li class="public ">
535
+ <span class="summary_signature">
536
+
537
+ <a href="#summary-instance_method" title="#summary (instance method)">- (String) <strong>summary</strong> </a>
538
+
539
+
540
+
541
+ </span>
542
+
543
+
544
+ <span class="note title readonly">readonly</span>
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+ <span class="summary_desc"><div class='inline'><p>Returns the summary this user has provided.</p>
554
+ </div></span>
555
+
556
+ </li>
557
+
558
+
559
+ <li class="public ">
560
+ <span class="summary_signature">
561
+
562
+ <a href="#trade_ban_state-instance_method" title="#trade_ban_state (instance method)">- (String) <strong>trade_ban_state</strong> </a>
563
+
564
+
565
+
566
+ </span>
567
+
568
+
569
+ <span class="note title readonly">readonly</span>
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+ <span class="summary_desc"><div class='inline'><p>Returns this user&#39;s ban state in Steam&#39;s trading system.</p>
579
+ </div></span>
580
+
581
+ </li>
582
+
583
+
584
+ <li class="public ">
585
+ <span class="summary_signature">
586
+
587
+ <a href="#visibility_state-instance_method" title="#visibility_state (instance method)">- (Fixnum) <strong>visibility_state</strong> </a>
588
+
589
+
590
+
591
+ </span>
592
+
593
+
594
+ <span class="note title readonly">readonly</span>
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+ <span class="summary_desc"><div class='inline'><p>Returns the visibility state of this Steam ID.</p>
604
+ </div></span>
605
+
606
+ </li>
607
+
608
+
609
+ </ul>
610
+
611
+
612
+
613
+
614
+
615
+ <h3 class="inherited">Attributes included from <span class='object_link'><a href="Cacheable.html" title="SteamCondenser::Cacheable (module)">Cacheable</a></span></h3>
616
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#fetch_time-instance_method" title="SteamCondenser::Cacheable#fetch_time (method)">#fetch_time</a></span></p>
617
+
618
+
619
+
620
+ <h2>
621
+ Class Method Summary
622
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
623
+ </h2>
624
+
625
+ <ul class="summary">
626
+
627
+ <li class="public ">
628
+ <span class="summary_signature">
629
+
630
+ <a href="#community_id_to_steam_id-class_method" title="community_id_to_steam_id (class method)">+ (String) <strong>community_id_to_steam_id</strong>(community_id) </a>
631
+
632
+
633
+
634
+ (also: convert_community_id_to_steam_id)
635
+
636
+ </span>
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+ <span class="summary_desc"><div class='inline'><p>Converts a 64bit numeric SteamID as used by the Steam Community to a
646
+ SteamID as reported by game servers.</p>
647
+ </div></span>
648
+
649
+ </li>
650
+
651
+
652
+ <li class="public ">
653
+ <span class="summary_signature">
654
+
655
+ <a href="#from_steam_id-class_method" title="from_steam_id (class method)">+ (SteamId) <strong>from_steam_id</strong>(steam_id) </a>
656
+
657
+
658
+
659
+ </span>
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+ <span class="summary_desc"><div class='inline'><p>Creates a new <code>SteamId</code> instance using a SteamID as used on servers.</p>
669
+ </div></span>
670
+
671
+ </li>
672
+
673
+
674
+ <li class="public ">
675
+ <span class="summary_signature">
676
+
677
+ <a href="#steam_id_to_community_id-class_method" title="steam_id_to_community_id (class method)">+ (Fixnum) <strong>steam_id_to_community_id</strong>(steam_id) </a>
678
+
679
+
680
+
681
+ (also: convert_steam_id_to_community_id)
682
+
683
+ </span>
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+ <span class="summary_desc"><div class='inline'><p>Converts a SteamID as reported by game servers to a 64bit numeric SteamID
693
+ as used by the Steam Community.</p>
694
+ </div></span>
695
+
696
+ </li>
697
+
698
+
699
+ </ul>
700
+
701
+ <h2>
702
+ Instance Method Summary
703
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
704
+ </h2>
705
+
706
+ <ul class="summary">
707
+
708
+ <li class="public ">
709
+ <span class="summary_signature">
710
+
711
+ <a href="#banned%3F-instance_method" title="#banned? (instance method)">- (Boolean) <strong>banned?</strong> </a>
712
+
713
+
714
+
715
+ (also: #is_banned?)
716
+
717
+ </span>
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+ <span class="summary_desc"><div class='inline'><p>Returns whether the owner of this SteamID is VAC banned.</p>
727
+ </div></span>
728
+
729
+ </li>
730
+
731
+
732
+ <li class="public ">
733
+ <span class="summary_signature">
734
+
735
+ <a href="#base_url-instance_method" title="#base_url (instance method)">- (String) <strong>base_url</strong> </a>
736
+
737
+
738
+
739
+ </span>
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+ <span class="summary_desc"><div class='inline'><p>Returns the base URL for this Steam ID.</p>
749
+ </div></span>
750
+
751
+ </li>
752
+
753
+
754
+ <li class="public ">
755
+ <span class="summary_signature">
756
+
757
+ <a href="#fetch-instance_method" title="#fetch (instance method)">- (Object) <strong>fetch</strong> </a>
758
+
759
+
760
+
761
+ </span>
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+ <span class="summary_desc"><div class='inline'><p>Fetchs data from the Steam Community by querying the XML version of the
771
+ profile specified by the ID of this Steam ID.</p>
772
+ </div></span>
773
+
774
+ </li>
775
+
776
+
777
+ <li class="public ">
778
+ <span class="summary_signature">
779
+
780
+ <a href="#fetch_friends-instance_method" title="#fetch_friends (instance method)">- (Object) <strong>fetch_friends</strong> </a>
781
+
782
+
783
+
784
+ </span>
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+ <span class="summary_desc"><div class='inline'><p>Fetches the friends of this user.</p>
794
+ </div></span>
795
+
796
+ </li>
797
+
798
+
799
+ <li class="public ">
800
+ <span class="summary_signature">
801
+
802
+ <a href="#fetch_games-instance_method" title="#fetch_games (instance method)">- (Object) <strong>fetch_games</strong> </a>
803
+
804
+
805
+
806
+ </span>
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+ <span class="summary_desc"><div class='inline'><p>Fetches the games this user owns.</p>
816
+ </div></span>
817
+
818
+ </li>
819
+
820
+
821
+ <li class="private ">
822
+ <span class="summary_signature">
823
+
824
+ <a href="#find_game-instance_method" title="#find_game (instance method)">- (SteamGame) <strong>find_game</strong>(id) </a>
825
+
826
+
827
+
828
+ </span>
829
+
830
+
831
+ <span class="note title private">private</span>
832
+
833
+
834
+
835
+
836
+
837
+ <span class="summary_desc"><div class='inline'><p>Tries to find a game instance with the given application ID or full name
838
+ or short name.</p>
839
+ </div></span>
840
+
841
+ </li>
842
+
843
+
844
+ <li class="public ">
845
+ <span class="summary_signature">
846
+
847
+ <a href="#friends-instance_method" title="#friends (instance method)">- (Array&lt;SteamId&gt;) <strong>friends</strong> </a>
848
+
849
+
850
+
851
+ </span>
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+ <span class="summary_desc"><div class='inline'><p>Returns the Steam Community friends of this user.</p>
861
+ </div></span>
862
+
863
+ </li>
864
+
865
+
866
+ <li class="public ">
867
+ <span class="summary_signature">
868
+
869
+ <a href="#full_avatar_url-instance_method" title="#full_avatar_url (instance method)">- (String) <strong>full_avatar_url</strong> </a>
870
+
871
+
872
+
873
+ </span>
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+ <span class="summary_desc"><div class='inline'><p>Returns the URL of the full-sized version of this user&#39;s avatar.</p>
883
+ </div></span>
884
+
885
+ </li>
886
+
887
+
888
+ <li class="public ">
889
+ <span class="summary_signature">
890
+
891
+ <a href="#game_stats-instance_method" title="#game_stats (instance method)">- (GameStats) <strong>game_stats</strong>(id) </a>
892
+
893
+
894
+
895
+ </span>
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+ <span class="summary_desc"><div class='inline'><p>Returns the stats for the given game for the owner of this SteamID.</p>
905
+ </div></span>
906
+
907
+ </li>
908
+
909
+
910
+ <li class="public ">
911
+ <span class="summary_signature">
912
+
913
+ <a href="#games-instance_method" title="#games (instance method)">- (Hash&lt;Fixnum, SteamGame&gt;) <strong>games</strong> </a>
914
+
915
+
916
+
917
+ </span>
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+ <span class="summary_desc"><div class='inline'><p>Returns the games this user owns.</p>
927
+ </div></span>
928
+
929
+ </li>
930
+
931
+
932
+ <li class="public ">
933
+ <span class="summary_signature">
934
+
935
+ <a href="#icon_url-instance_method" title="#icon_url (instance method)">- (String) <strong>icon_url</strong> </a>
936
+
937
+
938
+
939
+ </span>
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+ <span class="summary_desc"><div class='inline'><p>Returns the URL of the icon version of this user&#39;s avatar.</p>
949
+ </div></span>
950
+
951
+ </li>
952
+
953
+
954
+ <li class="public ">
955
+ <span class="summary_signature">
956
+
957
+ <a href="#id-instance_method" title="#id (instance method)">- (Fixnum, String) <strong>id</strong> </a>
958
+
959
+
960
+
961
+ </span>
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+ <span class="summary_desc"><div class='inline'><p>Returns a unique identifier for this Steam ID.</p>
971
+ </div></span>
972
+
973
+ </li>
974
+
975
+
976
+ <li class="public ">
977
+ <span class="summary_signature">
978
+
979
+ <a href="#in_game%3F-instance_method" title="#in_game? (instance method)">- (Boolean) <strong>in_game?</strong> </a>
980
+
981
+
982
+
983
+ (also: #is_in_game?)
984
+
985
+ </span>
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+ <span class="summary_desc"><div class='inline'><p>Returns whether the owner of this SteamId is playing a game.</p>
995
+ </div></span>
996
+
997
+ </li>
998
+
999
+
1000
+ <li class="public ">
1001
+ <span class="summary_signature">
1002
+
1003
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (SteamId) <strong>initialize</strong>(id, fetch = true) </a>
1004
+
1005
+
1006
+
1007
+ </span>
1008
+
1009
+ <span class="note title constructor">constructor</span>
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+ <span class="summary_desc"><div class='inline'><p>Creates a new <code>SteamId</code> instance for the given Steam ID.</p>
1019
+ </div></span>
1020
+
1021
+ </li>
1022
+
1023
+
1024
+ <li class="public ">
1025
+ <span class="summary_signature">
1026
+
1027
+ <a href="#limited%3F-instance_method" title="#limited? (instance method)">- (Boolean) <strong>limited?</strong> </a>
1028
+
1029
+
1030
+
1031
+ </span>
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+ <span class="summary_desc"><div class='inline'><p>Returns whether this Steam account is limited.</p>
1041
+ </div></span>
1042
+
1043
+ </li>
1044
+
1045
+
1046
+ <li class="public ">
1047
+ <span class="summary_signature">
1048
+
1049
+ <a href="#medium_avatar_url-instance_method" title="#medium_avatar_url (instance method)">- (String) <strong>medium_avatar_url</strong> </a>
1050
+
1051
+
1052
+
1053
+ </span>
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+ <span class="summary_desc"><div class='inline'><p>Returns the URL of the medium-sized version of this user&#39;s avatar.</p>
1063
+ </div></span>
1064
+
1065
+ </li>
1066
+
1067
+
1068
+ <li class="public ">
1069
+ <span class="summary_signature">
1070
+
1071
+ <a href="#online%3F-instance_method" title="#online? (instance method)">- (Boolean) <strong>online?</strong> </a>
1072
+
1073
+
1074
+
1075
+ (also: #is_online?)
1076
+
1077
+ </span>
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+ <span class="summary_desc"><div class='inline'><p>Returns whether the owner of this SteamID is currently logged into Steam.</p>
1087
+ </div></span>
1088
+
1089
+ </li>
1090
+
1091
+
1092
+ <li class="public ">
1093
+ <span class="summary_signature">
1094
+
1095
+ <a href="#public%3F-instance_method" title="#public? (instance method)">- (Boolean) <strong>public?</strong> </a>
1096
+
1097
+
1098
+
1099
+ </span>
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+ <span class="summary_desc"><div class='inline'><p>Returns whether this Steam ID is publicly accessible.</p>
1109
+ </div></span>
1110
+
1111
+ </li>
1112
+
1113
+
1114
+ <li class="public ">
1115
+ <span class="summary_signature">
1116
+
1117
+ <a href="#recent_playtime-instance_method" title="#recent_playtime (instance method)">- (Fixnum) <strong>recent_playtime</strong>(id) </a>
1118
+
1119
+
1120
+
1121
+ </span>
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+ <span class="summary_desc"><div class='inline'><p>Returns the time in minutes this user has played this game in the last
1131
+ two weeks.</p>
1132
+ </div></span>
1133
+
1134
+ </li>
1135
+
1136
+
1137
+ <li class="public ">
1138
+ <span class="summary_signature">
1139
+
1140
+ <a href="#total_playtime-instance_method" title="#total_playtime (instance method)">- (Fixnum) <strong>total_playtime</strong>(id) </a>
1141
+
1142
+
1143
+
1144
+ </span>
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+ <span class="summary_desc"><div class='inline'><p>Returns the total time in minutes this user has played this game.</p>
1154
+ </div></span>
1155
+
1156
+ </li>
1157
+
1158
+
1159
+ </ul>
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="XMLData.html" title="SteamCondenser::XMLData (module)">XMLData</a></span></h3>
1171
+ <p class="inherited"><span class='object_link'><a href="XMLData.html#parse-instance_method" title="SteamCondenser::XMLData#parse (method)">#parse</a></span></p>
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Cacheable.html" title="SteamCondenser::Cacheable (module)">Cacheable</a></span></h3>
1181
+ <p class="inherited"><span class='object_link'><a href="Cacheable.html#cache-instance_method" title="SteamCondenser::Cacheable#cache (method)">#cache</a></span>, <span class='object_link'><a href="Cacheable.html#fetched%3F-instance_method" title="SteamCondenser::Cacheable#fetched? (method)">#fetched?</a></span>, <span class='object_link'><a href="Cacheable.html#included-class_method" title="SteamCondenser::Cacheable.included (method)">included</a></span></p>
1182
+ <div id="constructor_details" class="method_details_list">
1183
+ <h2>Constructor Details</h2>
1184
+
1185
+ <div class="method_details first">
1186
+ <p class="signature first" id="initialize-instance_method">
1187
+
1188
+ - (<tt><span class='object_link'><a href="" title="SteamCondenser::SteamId (class)">SteamId</a></span></tt>) <strong>initialize</strong>(id, fetch = true)
1189
+
1190
+
1191
+
1192
+ </p><div class="docstring">
1193
+ <div class="discussion">
1194
+ <p>Creates a new <code>SteamId</code> instance for the given Steam ID</p>
1195
+
1196
+
1197
+ </div>
1198
+ </div>
1199
+ <div class="tags">
1200
+ <h3>Parameters:</h3>
1201
+ <ul class="param">
1202
+
1203
+ <li>
1204
+
1205
+ <span class='name'>id</span>
1206
+
1207
+
1208
+ <span class='type'>(<tt>String</tt>, <tt>Fixnum</tt>)</span>
1209
+
1210
+
1211
+
1212
+ &mdash;
1213
+ <div class='inline'><p>The custom URL of the Steam ID specified by
1214
+ the user or the 64bit SteamID</p>
1215
+ </div>
1216
+
1217
+ </li>
1218
+
1219
+ <li>
1220
+
1221
+ <span class='name'>fetch</span>
1222
+
1223
+
1224
+ <span class='type'>(<tt>Boolean</tt>)</span>
1225
+
1226
+
1227
+ <em class="default">(defaults to: <tt>true</tt>)</em>
1228
+
1229
+
1230
+ &mdash;
1231
+ <div class='inline'><p>if <code>true</code> the Steam ID&#39;s data is loaded into the
1232
+ object</p>
1233
+ </div>
1234
+
1235
+ </li>
1236
+
1237
+ </ul>
1238
+
1239
+
1240
+ </div><table class="source_code">
1241
+ <tr>
1242
+ <td>
1243
+ <pre class="lines">
1244
+
1245
+
1246
+ 208
1247
+ 209
1248
+ 210
1249
+ 211
1250
+ 212
1251
+ 213
1252
+ 214
1253
+ 215
1254
+ 216</pre>
1255
+ </td>
1256
+ <td>
1257
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 208</span>
1258
+
1259
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_id identifier id'>id</span><span class='comma token'>,</span> <span class='rubyid_fetch identifier id'>fetch</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span><span class='rparen token'>)</span>
1260
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_id identifier id'>id</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Numeric constant id'>Numeric</span>
1261
+ <span class='rubyid_@steam_id64 ivar id'>@steam_id64</span> <span class='assign token'>=</span> <span class='rubyid_id identifier id'>id</span>
1262
+ <span class='rubyid_else else kw'>else</span>
1263
+ <span class='rubyid_@custom_url ivar id'>@custom_url</span> <span class='assign token'>=</span> <span class='rubyid_id identifier id'>id</span><span class='dot token'>.</span><span class='rubyid_downcase identifier id'>downcase</span>
1264
+ <span class='rubyid_end end kw'>end</span>
1265
+
1266
+ <span class='rubyid_super super kw'>super</span> <span class='rubyid_fetch identifier id'>fetch</span>
1267
+ <span class='rubyid_end end kw'>end</span>
1268
+ </pre>
1269
+ </td>
1270
+ </tr>
1271
+ </table>
1272
+ </div>
1273
+
1274
+ </div>
1275
+
1276
+ <div id="instance_attr_details" class="attr_details">
1277
+ <h2>Instance Attribute Details</h2>
1278
+
1279
+
1280
+ <span id=""></span>
1281
+ <span id="custom_url-instance_method"></span>
1282
+ <div class="method_details first">
1283
+ <p class="signature first" id="custom_url-instance_method">
1284
+
1285
+ - (<tt>String</tt>) <strong>custom_url</strong> <span class="extras">(readonly)</span>
1286
+
1287
+
1288
+
1289
+ </p><div class="docstring">
1290
+ <div class="discussion">
1291
+
1292
+ <div class="note notetag">
1293
+ <strong>Note:</strong>
1294
+ <div class='inline'><p>The custom URL is not necessarily the same as the user&#39;s nickname.</p>
1295
+ </div>
1296
+ </div>
1297
+
1298
+ <p>Returns the custom URL of this Steam ID</p>
1299
+
1300
+ <p>The custom URL is a user specified unique string that can be used instead
1301
+ of the 64bit SteamID as an identifier for a Steam ID.</p>
1302
+
1303
+
1304
+ </div>
1305
+ </div>
1306
+ <div class="tags">
1307
+
1308
+ <h3>Returns:</h3>
1309
+ <ul class="return">
1310
+
1311
+ <li>
1312
+
1313
+
1314
+ <span class='type'>(<tt>String</tt>)</span>
1315
+
1316
+
1317
+
1318
+ &mdash;
1319
+ <div class='inline'><p>The custom URL of this Steam ID</p>
1320
+ </div>
1321
+
1322
+ </li>
1323
+
1324
+ </ul>
1325
+
1326
+ </div><table class="source_code">
1327
+ <tr>
1328
+ <td>
1329
+ <pre class="lines">
1330
+
1331
+
1332
+ 35
1333
+ 36
1334
+ 37</pre>
1335
+ </td>
1336
+ <td>
1337
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 35</span>
1338
+
1339
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_custom_url identifier id'>custom_url</span>
1340
+ <span class='rubyid_@custom_url ivar id'>@custom_url</span>
1341
+ <span class='rubyid_end end kw'>end</span>
1342
+ </pre>
1343
+ </td>
1344
+ </tr>
1345
+ </table>
1346
+ </div>
1347
+
1348
+
1349
+ <span id=""></span>
1350
+ <span id="favorite_game-instance_method"></span>
1351
+ <div class="method_details ">
1352
+ <p class="signature " id="favorite_game-instance_method">
1353
+
1354
+ - (<tt>String</tt>) <strong>favorite_game</strong> <span class="extras">(readonly)</span>
1355
+
1356
+
1357
+
1358
+ </p><div class="docstring">
1359
+ <div class="discussion">
1360
+ <div class="note deprecated"><strong>Deprecated.</strong> <div class='inline'><p>The favorite game is no longer listed for new users</p>
1361
+ </div></div>
1362
+ <p>Returns the favorite game of this user</p>
1363
+
1364
+
1365
+ </div>
1366
+ </div>
1367
+ <div class="tags">
1368
+
1369
+ <h3>Returns:</h3>
1370
+ <ul class="return">
1371
+
1372
+ <li>
1373
+
1374
+
1375
+ <span class='type'>(<tt>String</tt>)</span>
1376
+
1377
+
1378
+
1379
+ &mdash;
1380
+ <div class='inline'><p>The favorite game of this user</p>
1381
+ </div>
1382
+
1383
+ </li>
1384
+
1385
+ </ul>
1386
+
1387
+ </div><table class="source_code">
1388
+ <tr>
1389
+ <td>
1390
+ <pre class="lines">
1391
+
1392
+
1393
+ 41
1394
+ 42
1395
+ 43</pre>
1396
+ </td>
1397
+ <td>
1398
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 41</span>
1399
+
1400
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_favorite_game identifier id'>favorite_game</span>
1401
+ <span class='rubyid_@favorite_game ivar id'>@favorite_game</span>
1402
+ <span class='rubyid_end end kw'>end</span>
1403
+ </pre>
1404
+ </td>
1405
+ </tr>
1406
+ </table>
1407
+ </div>
1408
+
1409
+
1410
+ <span id=""></span>
1411
+ <span id="favorite_game_hours_played-instance_method"></span>
1412
+ <div class="method_details ">
1413
+ <p class="signature " id="favorite_game_hours_played-instance_method">
1414
+
1415
+ - (<tt>String</tt>) <strong>favorite_game_hours_played</strong> <span class="extras">(readonly)</span>
1416
+
1417
+
1418
+
1419
+ </p><div class="docstring">
1420
+ <div class="discussion">
1421
+ <div class="note deprecated"><strong>Deprecated.</strong> <div class='inline'><p>The favorite game is no longer listed for new users</p>
1422
+ </div></div>
1423
+ <p>Returns the number of hours that this user played his/her favorite game
1424
+ in the last two weeks</p>
1425
+
1426
+
1427
+ </div>
1428
+ </div>
1429
+ <div class="tags">
1430
+
1431
+ <h3>Returns:</h3>
1432
+ <ul class="return">
1433
+
1434
+ <li>
1435
+
1436
+
1437
+ <span class='type'>(<tt>String</tt>)</span>
1438
+
1439
+
1440
+
1441
+ &mdash;
1442
+ <div class='inline'><p>The number of hours the favorite game has been played
1443
+ recently</p>
1444
+ </div>
1445
+
1446
+ </li>
1447
+
1448
+ </ul>
1449
+
1450
+ </div><table class="source_code">
1451
+ <tr>
1452
+ <td>
1453
+ <pre class="lines">
1454
+
1455
+
1456
+ 49
1457
+ 50
1458
+ 51</pre>
1459
+ </td>
1460
+ <td>
1461
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 49</span>
1462
+
1463
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_favorite_game_hours_played identifier id'>favorite_game_hours_played</span>
1464
+ <span class='rubyid_@favorite_game_hours_played ivar id'>@favorite_game_hours_played</span>
1465
+ <span class='rubyid_end end kw'>end</span>
1466
+ </pre>
1467
+ </td>
1468
+ </tr>
1469
+ </table>
1470
+ </div>
1471
+
1472
+
1473
+ <span id=""></span>
1474
+ <span id="groups-instance_method"></span>
1475
+ <div class="method_details ">
1476
+ <p class="signature " id="groups-instance_method">
1477
+
1478
+ - (<tt>Array&lt;<span class='object_link'><a href="SteamGroup.html" title="SteamCondenser::SteamGroup (class)">SteamGroup</a></span>&gt;</tt>) <strong>groups</strong> <span class="extras">(readonly)</span>
1479
+
1480
+
1481
+
1482
+ </p><div class="docstring">
1483
+ <div class="discussion">
1484
+ <p>Returns the groups this user is a member of</p>
1485
+
1486
+
1487
+ </div>
1488
+ </div>
1489
+ <div class="tags">
1490
+
1491
+ <h3>Returns:</h3>
1492
+ <ul class="return">
1493
+
1494
+ <li>
1495
+
1496
+
1497
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="SteamGroup.html" title="SteamCondenser::SteamGroup (class)">SteamGroup</a></span>&gt;</tt>)</span>
1498
+
1499
+
1500
+
1501
+ &mdash;
1502
+ <div class='inline'><p>The groups this user is a member of</p>
1503
+ </div>
1504
+
1505
+ </li>
1506
+
1507
+ </ul>
1508
+
1509
+ </div><table class="source_code">
1510
+ <tr>
1511
+ <td>
1512
+ <pre class="lines">
1513
+
1514
+
1515
+ 54
1516
+ 55
1517
+ 56</pre>
1518
+ </td>
1519
+ <td>
1520
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 54</span>
1521
+
1522
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_groups identifier id'>groups</span>
1523
+ <span class='rubyid_@groups ivar id'>@groups</span>
1524
+ <span class='rubyid_end end kw'>end</span>
1525
+ </pre>
1526
+ </td>
1527
+ </tr>
1528
+ </table>
1529
+ </div>
1530
+
1531
+
1532
+ <span id=""></span>
1533
+ <span id="head_line-instance_method"></span>
1534
+ <div class="method_details ">
1535
+ <p class="signature " id="head_line-instance_method">
1536
+
1537
+ - (<tt>String</tt>) <strong>head_line</strong> <span class="extras">(readonly)</span>
1538
+
1539
+
1540
+
1541
+ </p><div class="docstring">
1542
+ <div class="discussion">
1543
+ <p>Returns the headline specified by the user</p>
1544
+
1545
+
1546
+ </div>
1547
+ </div>
1548
+ <div class="tags">
1549
+
1550
+ <h3>Returns:</h3>
1551
+ <ul class="return">
1552
+
1553
+ <li>
1554
+
1555
+
1556
+ <span class='type'>(<tt>String</tt>)</span>
1557
+
1558
+
1559
+
1560
+ &mdash;
1561
+ <div class='inline'><p>The headline specified by the user</p>
1562
+ </div>
1563
+
1564
+ </li>
1565
+
1566
+ </ul>
1567
+
1568
+ </div><table class="source_code">
1569
+ <tr>
1570
+ <td>
1571
+ <pre class="lines">
1572
+
1573
+
1574
+ 59
1575
+ 60
1576
+ 61</pre>
1577
+ </td>
1578
+ <td>
1579
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 59</span>
1580
+
1581
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_head_line identifier id'>head_line</span>
1582
+ <span class='rubyid_@head_line ivar id'>@head_line</span>
1583
+ <span class='rubyid_end end kw'>end</span>
1584
+ </pre>
1585
+ </td>
1586
+ </tr>
1587
+ </table>
1588
+ </div>
1589
+
1590
+
1591
+ <span id=""></span>
1592
+ <span id="hours_played-instance_method"></span>
1593
+ <div class="method_details ">
1594
+ <p class="signature " id="hours_played-instance_method">
1595
+
1596
+ - (<tt>Float</tt>) <strong>hours_played</strong> <span class="extras">(readonly)</span>
1597
+
1598
+
1599
+
1600
+ </p><div class="docstring">
1601
+ <div class="discussion">
1602
+ <p>Returns the number of hours that this user played a game in the last two
1603
+ weeks</p>
1604
+
1605
+
1606
+ </div>
1607
+ </div>
1608
+ <div class="tags">
1609
+
1610
+ <h3>Returns:</h3>
1611
+ <ul class="return">
1612
+
1613
+ <li>
1614
+
1615
+
1616
+ <span class='type'>(<tt>Float</tt>)</span>
1617
+
1618
+
1619
+
1620
+ &mdash;
1621
+ <div class='inline'><p>The number of hours the user has played recently</p>
1622
+ </div>
1623
+
1624
+ </li>
1625
+
1626
+ </ul>
1627
+
1628
+ </div><table class="source_code">
1629
+ <tr>
1630
+ <td>
1631
+ <pre class="lines">
1632
+
1633
+
1634
+ 65
1635
+ 66
1636
+ 67</pre>
1637
+ </td>
1638
+ <td>
1639
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 65</span>
1640
+
1641
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_hours_played identifier id'>hours_played</span>
1642
+ <span class='rubyid_@hours_played ivar id'>@hours_played</span>
1643
+ <span class='rubyid_end end kw'>end</span>
1644
+ </pre>
1645
+ </td>
1646
+ </tr>
1647
+ </table>
1648
+ </div>
1649
+
1650
+
1651
+ <span id=""></span>
1652
+ <span id="links-instance_method"></span>
1653
+ <div class="method_details ">
1654
+ <p class="signature " id="links-instance_method">
1655
+
1656
+ - (<tt>Hash&lt;String, String&gt;</tt>) <strong>links</strong> <span class="extras">(readonly)</span>
1657
+
1658
+
1659
+
1660
+ </p><div class="docstring">
1661
+ <div class="discussion">
1662
+ <p>Returns the links that this user has added to his/her Steam ID</p>
1663
+
1664
+ <p>The keys of the hash contain the titles of the links while the values
1665
+ contain the corresponding URLs.</p>
1666
+
1667
+
1668
+ </div>
1669
+ </div>
1670
+ <div class="tags">
1671
+
1672
+ <h3>Returns:</h3>
1673
+ <ul class="return">
1674
+
1675
+ <li>
1676
+
1677
+
1678
+ <span class='type'>(<tt>Hash&lt;String, String&gt;</tt>)</span>
1679
+
1680
+
1681
+
1682
+ &mdash;
1683
+ <div class='inline'><p>The links of this user</p>
1684
+ </div>
1685
+
1686
+ </li>
1687
+
1688
+ </ul>
1689
+
1690
+ </div><table class="source_code">
1691
+ <tr>
1692
+ <td>
1693
+ <pre class="lines">
1694
+
1695
+
1696
+ 73
1697
+ 74
1698
+ 75</pre>
1699
+ </td>
1700
+ <td>
1701
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 73</span>
1702
+
1703
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_links identifier id'>links</span>
1704
+ <span class='rubyid_@links ivar id'>@links</span>
1705
+ <span class='rubyid_end end kw'>end</span>
1706
+ </pre>
1707
+ </td>
1708
+ </tr>
1709
+ </table>
1710
+ </div>
1711
+
1712
+
1713
+ <span id=""></span>
1714
+ <span id="location-instance_method"></span>
1715
+ <div class="method_details ">
1716
+ <p class="signature " id="location-instance_method">
1717
+
1718
+ - (<tt>String</tt>) <strong>location</strong> <span class="extras">(readonly)</span>
1719
+
1720
+
1721
+
1722
+ </p><div class="docstring">
1723
+ <div class="discussion">
1724
+ <p>Returns the location of the user</p>
1725
+
1726
+
1727
+ </div>
1728
+ </div>
1729
+ <div class="tags">
1730
+
1731
+ <h3>Returns:</h3>
1732
+ <ul class="return">
1733
+
1734
+ <li>
1735
+
1736
+
1737
+ <span class='type'>(<tt>String</tt>)</span>
1738
+
1739
+
1740
+
1741
+ &mdash;
1742
+ <div class='inline'><p>The location of the user</p>
1743
+ </div>
1744
+
1745
+ </li>
1746
+
1747
+ </ul>
1748
+
1749
+ </div><table class="source_code">
1750
+ <tr>
1751
+ <td>
1752
+ <pre class="lines">
1753
+
1754
+
1755
+ 78
1756
+ 79
1757
+ 80</pre>
1758
+ </td>
1759
+ <td>
1760
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 78</span>
1761
+
1762
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_location identifier id'>location</span>
1763
+ <span class='rubyid_@location ivar id'>@location</span>
1764
+ <span class='rubyid_end end kw'>end</span>
1765
+ </pre>
1766
+ </td>
1767
+ </tr>
1768
+ </table>
1769
+ </div>
1770
+
1771
+
1772
+ <span id=""></span>
1773
+ <span id="member_since-instance_method"></span>
1774
+ <div class="method_details ">
1775
+ <p class="signature " id="member_since-instance_method">
1776
+
1777
+ - (<tt>Time</tt>) <strong>member_since</strong> <span class="extras">(readonly)</span>
1778
+
1779
+
1780
+
1781
+ </p><div class="docstring">
1782
+ <div class="discussion">
1783
+ <p>Returns the date of registration for the Steam account belonging to this
1784
+ SteamID</p>
1785
+
1786
+
1787
+ </div>
1788
+ </div>
1789
+ <div class="tags">
1790
+
1791
+ <h3>Returns:</h3>
1792
+ <ul class="return">
1793
+
1794
+ <li>
1795
+
1796
+
1797
+ <span class='type'>(<tt>Time</tt>)</span>
1798
+
1799
+
1800
+
1801
+ &mdash;
1802
+ <div class='inline'><p>The date of the Steam account registration</p>
1803
+ </div>
1804
+
1805
+ </li>
1806
+
1807
+ </ul>
1808
+
1809
+ </div><table class="source_code">
1810
+ <tr>
1811
+ <td>
1812
+ <pre class="lines">
1813
+
1814
+
1815
+ 84
1816
+ 85
1817
+ 86</pre>
1818
+ </td>
1819
+ <td>
1820
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 84</span>
1821
+
1822
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_member_since identifier id'>member_since</span>
1823
+ <span class='rubyid_@member_since ivar id'>@member_since</span>
1824
+ <span class='rubyid_end end kw'>end</span>
1825
+ </pre>
1826
+ </td>
1827
+ </tr>
1828
+ </table>
1829
+ </div>
1830
+
1831
+
1832
+ <span id=""></span>
1833
+ <span id="most_played_games-instance_method"></span>
1834
+ <div class="method_details ">
1835
+ <p class="signature " id="most_played_games-instance_method">
1836
+
1837
+ - (<tt>Hash&lt;String, Float&gt;</tt>) <strong>most_played_games</strong> <span class="extras">(readonly)</span>
1838
+
1839
+
1840
+
1841
+ </p><div class="docstring">
1842
+ <div class="discussion">
1843
+ <p>Returns the games this user has played the most in the last two weeks</p>
1844
+
1845
+ <p>The keys of the hash contain the names of the games while the values
1846
+ contain the number of hours the corresponding game has been played by the
1847
+ user in the last two weeks.</p>
1848
+
1849
+
1850
+ </div>
1851
+ </div>
1852
+ <div class="tags">
1853
+
1854
+ <h3>Returns:</h3>
1855
+ <ul class="return">
1856
+
1857
+ <li>
1858
+
1859
+
1860
+ <span class='type'>(<tt>Hash&lt;String, Float&gt;</tt>)</span>
1861
+
1862
+
1863
+
1864
+ &mdash;
1865
+ <div class='inline'><p>The games this user has played the most
1866
+ recently</p>
1867
+ </div>
1868
+
1869
+ </li>
1870
+
1871
+ </ul>
1872
+
1873
+ </div><table class="source_code">
1874
+ <tr>
1875
+ <td>
1876
+ <pre class="lines">
1877
+
1878
+
1879
+ 94
1880
+ 95
1881
+ 96</pre>
1882
+ </td>
1883
+ <td>
1884
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 94</span>
1885
+
1886
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_most_played_games identifier id'>most_played_games</span>
1887
+ <span class='rubyid_@most_played_games ivar id'>@most_played_games</span>
1888
+ <span class='rubyid_end end kw'>end</span>
1889
+ </pre>
1890
+ </td>
1891
+ </tr>
1892
+ </table>
1893
+ </div>
1894
+
1895
+
1896
+ <span id=""></span>
1897
+ <span id="nickname-instance_method"></span>
1898
+ <div class="method_details ">
1899
+ <p class="signature " id="nickname-instance_method">
1900
+
1901
+ - (<tt>String</tt>) <strong>nickname</strong> <span class="extras">(readonly)</span>
1902
+
1903
+
1904
+
1905
+ </p><div class="docstring">
1906
+ <div class="discussion">
1907
+ <p>Returns the Steam nickname of the user</p>
1908
+
1909
+
1910
+ </div>
1911
+ </div>
1912
+ <div class="tags">
1913
+
1914
+ <h3>Returns:</h3>
1915
+ <ul class="return">
1916
+
1917
+ <li>
1918
+
1919
+
1920
+ <span class='type'>(<tt>String</tt>)</span>
1921
+
1922
+
1923
+
1924
+ &mdash;
1925
+ <div class='inline'><p>The Steam nickname of the user</p>
1926
+ </div>
1927
+
1928
+ </li>
1929
+
1930
+ </ul>
1931
+
1932
+ </div><table class="source_code">
1933
+ <tr>
1934
+ <td>
1935
+ <pre class="lines">
1936
+
1937
+
1938
+ 99
1939
+ 100
1940
+ 101</pre>
1941
+ </td>
1942
+ <td>
1943
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 99</span>
1944
+
1945
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_nickname identifier id'>nickname</span>
1946
+ <span class='rubyid_@nickname ivar id'>@nickname</span>
1947
+ <span class='rubyid_end end kw'>end</span>
1948
+ </pre>
1949
+ </td>
1950
+ </tr>
1951
+ </table>
1952
+ </div>
1953
+
1954
+
1955
+ <span id=""></span>
1956
+ <span id="privacy_state-instance_method"></span>
1957
+ <div class="method_details ">
1958
+ <p class="signature " id="privacy_state-instance_method">
1959
+
1960
+ - (<tt>String</tt>) <strong>privacy_state</strong> <span class="extras">(readonly)</span>
1961
+
1962
+
1963
+
1964
+ </p><div class="docstring">
1965
+ <div class="discussion">
1966
+ <p>Returns the privacy state of this Steam ID</p>
1967
+
1968
+
1969
+ </div>
1970
+ </div>
1971
+ <div class="tags">
1972
+
1973
+ <h3>Returns:</h3>
1974
+ <ul class="return">
1975
+
1976
+ <li>
1977
+
1978
+
1979
+ <span class='type'>(<tt>String</tt>)</span>
1980
+
1981
+
1982
+
1983
+ &mdash;
1984
+ <div class='inline'><p>The privacy state of this Steam ID</p>
1985
+ </div>
1986
+
1987
+ </li>
1988
+
1989
+ </ul>
1990
+
1991
+ </div><table class="source_code">
1992
+ <tr>
1993
+ <td>
1994
+ <pre class="lines">
1995
+
1996
+
1997
+ 104
1998
+ 105
1999
+ 106</pre>
2000
+ </td>
2001
+ <td>
2002
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 104</span>
2003
+
2004
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_privacy_state identifier id'>privacy_state</span>
2005
+ <span class='rubyid_@privacy_state ivar id'>@privacy_state</span>
2006
+ <span class='rubyid_end end kw'>end</span>
2007
+ </pre>
2008
+ </td>
2009
+ </tr>
2010
+ </table>
2011
+ </div>
2012
+
2013
+
2014
+ <span id=""></span>
2015
+ <span id="real_name-instance_method"></span>
2016
+ <div class="method_details ">
2017
+ <p class="signature " id="real_name-instance_method">
2018
+
2019
+ - (<tt>String</tt>) <strong>real_name</strong> <span class="extras">(readonly)</span>
2020
+
2021
+
2022
+
2023
+ </p><div class="docstring">
2024
+ <div class="discussion">
2025
+ <p>Returns the real name of this user</p>
2026
+
2027
+
2028
+ </div>
2029
+ </div>
2030
+ <div class="tags">
2031
+
2032
+ <h3>Returns:</h3>
2033
+ <ul class="return">
2034
+
2035
+ <li>
2036
+
2037
+
2038
+ <span class='type'>(<tt>String</tt>)</span>
2039
+
2040
+
2041
+
2042
+ &mdash;
2043
+ <div class='inline'><p>The real name of this user</p>
2044
+ </div>
2045
+
2046
+ </li>
2047
+
2048
+ </ul>
2049
+
2050
+ </div><table class="source_code">
2051
+ <tr>
2052
+ <td>
2053
+ <pre class="lines">
2054
+
2055
+
2056
+ 109
2057
+ 110
2058
+ 111</pre>
2059
+ </td>
2060
+ <td>
2061
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 109</span>
2062
+
2063
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_real_name identifier id'>real_name</span>
2064
+ <span class='rubyid_@real_name ivar id'>@real_name</span>
2065
+ <span class='rubyid_end end kw'>end</span>
2066
+ </pre>
2067
+ </td>
2068
+ </tr>
2069
+ </table>
2070
+ </div>
2071
+
2072
+
2073
+ <span id=""></span>
2074
+ <span id="state_message-instance_method"></span>
2075
+ <div class="method_details ">
2076
+ <p class="signature " id="state_message-instance_method">
2077
+
2078
+ - (<tt>String</tt>) <strong>state_message</strong> <span class="extras">(readonly)</span>
2079
+
2080
+
2081
+
2082
+ </p><div class="docstring">
2083
+ <div class="discussion">
2084
+ <p>Returns the message corresponding to this user&#39;s online state</p>
2085
+
2086
+
2087
+ </div>
2088
+ </div>
2089
+ <div class="tags">
2090
+
2091
+ <h3>Returns:</h3>
2092
+ <ul class="return">
2093
+
2094
+ <li>
2095
+
2096
+
2097
+ <span class='type'>(<tt>String</tt>)</span>
2098
+
2099
+
2100
+
2101
+ &mdash;
2102
+ <div class='inline'><p>The message corresponding to this user&#39;s online state</p>
2103
+ </div>
2104
+
2105
+ </li>
2106
+
2107
+ </ul>
2108
+
2109
+ <h3>See Also:</h3>
2110
+ <ul class="see">
2111
+
2112
+ <li>#ingame?</li>
2113
+
2114
+ <li><span class='object_link'><a href="#online%3F-instance_method" title="SteamCondenser::SteamId#online? (method)">#online?</a></span></li>
2115
+
2116
+ </ul>
2117
+
2118
+ </div><table class="source_code">
2119
+ <tr>
2120
+ <td>
2121
+ <pre class="lines">
2122
+
2123
+
2124
+ 116
2125
+ 117
2126
+ 118</pre>
2127
+ </td>
2128
+ <td>
2129
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 116</span>
2130
+
2131
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_state_message identifier id'>state_message</span>
2132
+ <span class='rubyid_@state_message ivar id'>@state_message</span>
2133
+ <span class='rubyid_end end kw'>end</span>
2134
+ </pre>
2135
+ </td>
2136
+ </tr>
2137
+ </table>
2138
+ </div>
2139
+
2140
+
2141
+ <span id=""></span>
2142
+ <span id="steam_id64-instance_method"></span>
2143
+ <div class="method_details ">
2144
+ <p class="signature " id="steam_id64-instance_method">
2145
+
2146
+ - (<tt>Fixnum</tt>) <strong>steam_id64</strong> <span class="extras">(readonly)</span>
2147
+
2148
+
2149
+
2150
+ </p><div class="docstring">
2151
+ <div class="discussion">
2152
+ <p>Returns this user&#39;s 64bit SteamID</p>
2153
+
2154
+
2155
+ </div>
2156
+ </div>
2157
+ <div class="tags">
2158
+
2159
+ <h3>Returns:</h3>
2160
+ <ul class="return">
2161
+
2162
+ <li>
2163
+
2164
+
2165
+ <span class='type'>(<tt>Fixnum</tt>)</span>
2166
+
2167
+
2168
+
2169
+ &mdash;
2170
+ <div class='inline'><p>This user&#39;s 64bit SteamID</p>
2171
+ </div>
2172
+
2173
+ </li>
2174
+
2175
+ </ul>
2176
+
2177
+ </div><table class="source_code">
2178
+ <tr>
2179
+ <td>
2180
+ <pre class="lines">
2181
+
2182
+
2183
+ 121
2184
+ 122
2185
+ 123</pre>
2186
+ </td>
2187
+ <td>
2188
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 121</span>
2189
+
2190
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_steam_id64 identifier id'>steam_id64</span>
2191
+ <span class='rubyid_@steam_id64 ivar id'>@steam_id64</span>
2192
+ <span class='rubyid_end end kw'>end</span>
2193
+ </pre>
2194
+ </td>
2195
+ </tr>
2196
+ </table>
2197
+ </div>
2198
+
2199
+
2200
+ <span id=""></span>
2201
+ <span id="steam_rating-instance_method"></span>
2202
+ <div class="method_details ">
2203
+ <p class="signature " id="steam_rating-instance_method">
2204
+
2205
+ - (<tt>Float</tt>) <strong>steam_rating</strong> <span class="extras">(readonly)</span>
2206
+
2207
+
2208
+
2209
+ </p><div class="docstring">
2210
+ <div class="discussion">
2211
+ <p>Returns the Steam rating calculated over the last two weeks&#39; activity</p>
2212
+
2213
+
2214
+ </div>
2215
+ </div>
2216
+ <div class="tags">
2217
+
2218
+ <h3>Returns:</h3>
2219
+ <ul class="return">
2220
+
2221
+ <li>
2222
+
2223
+
2224
+ <span class='type'>(<tt>Float</tt>)</span>
2225
+
2226
+
2227
+
2228
+ &mdash;
2229
+ <div class='inline'><p>The Steam rating of this user</p>
2230
+ </div>
2231
+
2232
+ </li>
2233
+
2234
+ </ul>
2235
+
2236
+ </div><table class="source_code">
2237
+ <tr>
2238
+ <td>
2239
+ <pre class="lines">
2240
+
2241
+
2242
+ 126
2243
+ 127
2244
+ 128</pre>
2245
+ </td>
2246
+ <td>
2247
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 126</span>
2248
+
2249
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_steam_rating identifier id'>steam_rating</span>
2250
+ <span class='rubyid_@steam_rating ivar id'>@steam_rating</span>
2251
+ <span class='rubyid_end end kw'>end</span>
2252
+ </pre>
2253
+ </td>
2254
+ </tr>
2255
+ </table>
2256
+ </div>
2257
+
2258
+
2259
+ <span id=""></span>
2260
+ <span id="summary-instance_method"></span>
2261
+ <div class="method_details ">
2262
+ <p class="signature " id="summary-instance_method">
2263
+
2264
+ - (<tt>String</tt>) <strong>summary</strong> <span class="extras">(readonly)</span>
2265
+
2266
+
2267
+
2268
+ </p><div class="docstring">
2269
+ <div class="discussion">
2270
+ <p>Returns the summary this user has provided</p>
2271
+
2272
+
2273
+ </div>
2274
+ </div>
2275
+ <div class="tags">
2276
+
2277
+ <h3>Returns:</h3>
2278
+ <ul class="return">
2279
+
2280
+ <li>
2281
+
2282
+
2283
+ <span class='type'>(<tt>String</tt>)</span>
2284
+
2285
+
2286
+
2287
+ &mdash;
2288
+ <div class='inline'><p>This user&#39;s summary</p>
2289
+ </div>
2290
+
2291
+ </li>
2292
+
2293
+ </ul>
2294
+
2295
+ </div><table class="source_code">
2296
+ <tr>
2297
+ <td>
2298
+ <pre class="lines">
2299
+
2300
+
2301
+ 131
2302
+ 132
2303
+ 133</pre>
2304
+ </td>
2305
+ <td>
2306
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 131</span>
2307
+
2308
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_summary identifier id'>summary</span>
2309
+ <span class='rubyid_@summary ivar id'>@summary</span>
2310
+ <span class='rubyid_end end kw'>end</span>
2311
+ </pre>
2312
+ </td>
2313
+ </tr>
2314
+ </table>
2315
+ </div>
2316
+
2317
+
2318
+ <span id=""></span>
2319
+ <span id="trade_ban_state-instance_method"></span>
2320
+ <div class="method_details ">
2321
+ <p class="signature " id="trade_ban_state-instance_method">
2322
+
2323
+ - (<tt>String</tt>) <strong>trade_ban_state</strong> <span class="extras">(readonly)</span>
2324
+
2325
+
2326
+
2327
+ </p><div class="docstring">
2328
+ <div class="discussion">
2329
+ <p>Returns this user&#39;s ban state in Steam&#39;s trading system</p>
2330
+
2331
+
2332
+ </div>
2333
+ </div>
2334
+ <div class="tags">
2335
+
2336
+ <h3>Returns:</h3>
2337
+ <ul class="return">
2338
+
2339
+ <li>
2340
+
2341
+
2342
+ <span class='type'>(<tt>String</tt>)</span>
2343
+
2344
+
2345
+
2346
+ &mdash;
2347
+ <div class='inline'><p>This user&#39;s trading ban state</p>
2348
+ </div>
2349
+
2350
+ </li>
2351
+
2352
+ </ul>
2353
+
2354
+ </div><table class="source_code">
2355
+ <tr>
2356
+ <td>
2357
+ <pre class="lines">
2358
+
2359
+
2360
+ 136
2361
+ 137
2362
+ 138</pre>
2363
+ </td>
2364
+ <td>
2365
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 136</span>
2366
+
2367
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_trade_ban_state identifier id'>trade_ban_state</span>
2368
+ <span class='rubyid_@trade_ban_state ivar id'>@trade_ban_state</span>
2369
+ <span class='rubyid_end end kw'>end</span>
2370
+ </pre>
2371
+ </td>
2372
+ </tr>
2373
+ </table>
2374
+ </div>
2375
+
2376
+
2377
+ <span id=""></span>
2378
+ <span id="visibility_state-instance_method"></span>
2379
+ <div class="method_details ">
2380
+ <p class="signature " id="visibility_state-instance_method">
2381
+
2382
+ - (<tt>Fixnum</tt>) <strong>visibility_state</strong> <span class="extras">(readonly)</span>
2383
+
2384
+
2385
+
2386
+ </p><div class="docstring">
2387
+ <div class="discussion">
2388
+ <p>Returns the visibility state of this Steam ID</p>
2389
+
2390
+
2391
+ </div>
2392
+ </div>
2393
+ <div class="tags">
2394
+
2395
+ <h3>Returns:</h3>
2396
+ <ul class="return">
2397
+
2398
+ <li>
2399
+
2400
+
2401
+ <span class='type'>(<tt>Fixnum</tt>)</span>
2402
+
2403
+
2404
+
2405
+ &mdash;
2406
+ <div class='inline'><p>This Steam ID&#39;s visibility State</p>
2407
+ </div>
2408
+
2409
+ </li>
2410
+
2411
+ </ul>
2412
+
2413
+ </div><table class="source_code">
2414
+ <tr>
2415
+ <td>
2416
+ <pre class="lines">
2417
+
2418
+
2419
+ 141
2420
+ 142
2421
+ 143</pre>
2422
+ </td>
2423
+ <td>
2424
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 141</span>
2425
+
2426
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_visibility_state identifier id'>visibility_state</span>
2427
+ <span class='rubyid_@visibility_state ivar id'>@visibility_state</span>
2428
+ <span class='rubyid_end end kw'>end</span>
2429
+ </pre>
2430
+ </td>
2431
+ </tr>
2432
+ </table>
2433
+ </div>
2434
+
2435
+ </div>
2436
+
2437
+
2438
+ <div id="class_method_details" class="method_details_list">
2439
+ <h2>Class Method Details</h2>
2440
+
2441
+
2442
+ <div class="method_details first">
2443
+ <p class="signature first" id="community_id_to_steam_id-class_method">
2444
+
2445
+ + (<tt>String</tt>) <strong>community_id_to_steam_id</strong>(community_id)
2446
+
2447
+
2448
+
2449
+ <span class="aliases">Also known as:
2450
+ <span class="names"><span id='convert_community_id_to_steam_id-class_method'>convert_community_id_to_steam_id</span></span>
2451
+ </span>
2452
+
2453
+ </p><div class="docstring">
2454
+ <div class="discussion">
2455
+ <p>Converts a 64bit numeric SteamID as used by the Steam Community to a
2456
+ SteamID as reported by game servers</p>
2457
+
2458
+
2459
+ </div>
2460
+ </div>
2461
+ <div class="tags">
2462
+ <h3>Parameters:</h3>
2463
+ <ul class="param">
2464
+
2465
+ <li>
2466
+
2467
+ <span class='name'>community_id</span>
2468
+
2469
+
2470
+ <span class='type'>(<tt>Fixnum</tt>)</span>
2471
+
2472
+
2473
+
2474
+ &mdash;
2475
+ <div class='inline'><p>The SteamID string as used by the Steam
2476
+ Community</p>
2477
+ </div>
2478
+
2479
+ </li>
2480
+
2481
+ </ul>
2482
+
2483
+ <h3>Returns:</h3>
2484
+ <ul class="return">
2485
+
2486
+ <li>
2487
+
2488
+
2489
+ <span class='type'>(<tt>String</tt>)</span>
2490
+
2491
+
2492
+
2493
+ &mdash;
2494
+ <div class='inline'><p>The converted SteamID, like <code>STEAM_0:0:12345</code></p>
2495
+ </div>
2496
+
2497
+ </li>
2498
+
2499
+ </ul>
2500
+ <h3>Raises:</h3>
2501
+ <ul class="raise">
2502
+
2503
+ <li>
2504
+
2505
+
2506
+ <span class='type'>(<tt><span class='object_link'><a href="Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
2507
+
2508
+
2509
+
2510
+ &mdash;
2511
+ <div class='inline'><p>if the community ID is to small</p>
2512
+ </div>
2513
+
2514
+ </li>
2515
+
2516
+ </ul>
2517
+
2518
+ </div><table class="source_code">
2519
+ <tr>
2520
+ <td>
2521
+ <pre class="lines">
2522
+
2523
+
2524
+ 150
2525
+ 151
2526
+ 152
2527
+ 153
2528
+ 154
2529
+ 155
2530
+ 156
2531
+ 157
2532
+ 158
2533
+ 159
2534
+ 160
2535
+ 161</pre>
2536
+ </td>
2537
+ <td>
2538
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 150</span>
2539
+
2540
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_community_id_to_steam_id identifier id'>community_id_to_steam_id</span><span class='lparen token'>(</span><span class='rubyid_community_id identifier id'>community_id</span><span class='rparen token'>)</span>
2541
+ <span class='rubyid_steam_id1 identifier id'>steam_id1</span> <span class='assign token'>=</span> <span class='rubyid_community_id identifier id'>community_id</span> <span class='mod op'>%</span> <span class='integer val'>2</span>
2542
+ <span class='rubyid_steam_id2 identifier id'>steam_id2</span> <span class='assign token'>=</span> <span class='rubyid_community_id identifier id'>community_id</span> <span class='minus op'>-</span> <span class='integer val'>76561197960265728</span>
2543
+
2544
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_steam_id2 identifier id'>steam_id2</span> <span class='gt op'>&gt;</span> <span class='integer val'>0</span>
2545
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='dstring node'>&quot;SteamID #{community_id} is too small.&quot;</span>
2546
+ <span class='rubyid_end end kw'>end</span>
2547
+
2548
+ <span class='rubyid_steam_id2 identifier id'>steam_id2</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_steam_id2 identifier id'>steam_id2</span> <span class='minus op'>-</span> <span class='rubyid_steam_id1 identifier id'>steam_id1</span><span class='rparen token'>)</span> <span class='div op'>/</span> <span class='integer val'>2</span>
2549
+
2550
+ <span class='dstring node'>&quot;STEAM_0:#{steam_id1}:#{steam_id2}&quot;</span>
2551
+ <span class='rubyid_end end kw'>end</span>
2552
+ </pre>
2553
+ </td>
2554
+ </tr>
2555
+ </table>
2556
+ </div>
2557
+
2558
+ <div class="method_details ">
2559
+ <p class="signature " id="from_steam_id-class_method">
2560
+
2561
+ + (<tt><span class='object_link'><a href="" title="SteamCondenser::SteamId (class)">SteamId</a></span></tt>) <strong>from_steam_id</strong>(steam_id)
2562
+
2563
+
2564
+
2565
+ </p><div class="docstring">
2566
+ <div class="discussion">
2567
+ <p>Creates a new <code>SteamId</code> instance using a SteamID as used on servers</p>
2568
+
2569
+ <p>The SteamID from the server is converted into a 64bit numeric SteamID
2570
+ first before this is used to retrieve the corresponding Steam Community
2571
+ profile.</p>
2572
+
2573
+
2574
+ </div>
2575
+ </div>
2576
+ <div class="tags">
2577
+ <h3>Parameters:</h3>
2578
+ <ul class="param">
2579
+
2580
+ <li>
2581
+
2582
+ <span class='name'>steam_id</span>
2583
+
2584
+
2585
+ <span class='type'>(<tt>String</tt>)</span>
2586
+
2587
+
2588
+
2589
+ &mdash;
2590
+ <div class='inline'><p>The SteamID string as used on servers, like
2591
+ <code>STEAM_0:0:12345</code></p>
2592
+ </div>
2593
+
2594
+ </li>
2595
+
2596
+ </ul>
2597
+
2598
+ <h3>Returns:</h3>
2599
+ <ul class="return">
2600
+
2601
+ <li>
2602
+
2603
+
2604
+ <span class='type'>(<tt><span class='object_link'><a href="" title="SteamCondenser::SteamId (class)">SteamId</a></span></tt>)</span>
2605
+
2606
+
2607
+
2608
+ &mdash;
2609
+ <div class='inline'><p>The <code>SteamId</code> belonging to the given SteamID</p>
2610
+ </div>
2611
+
2612
+ </li>
2613
+
2614
+ </ul>
2615
+
2616
+ <h3>See Also:</h3>
2617
+ <ul class="see">
2618
+
2619
+ <li><span class='object_link'><a href="#convert_steam_id_to_community_id-class_method" title="SteamCondenser::SteamId.convert_steam_id_to_community_id (method)">convert_steam_id_to_community_id</a></span></li>
2620
+
2621
+ <li><span class='object_link'><a href="#initialize-instance_method" title="SteamCondenser::SteamId#initialize (method)">#initialize</a></span></li>
2622
+
2623
+ </ul>
2624
+
2625
+ </div><table class="source_code">
2626
+ <tr>
2627
+ <td>
2628
+ <pre class="lines">
2629
+
2630
+
2631
+ 198
2632
+ 199
2633
+ 200</pre>
2634
+ </td>
2635
+ <td>
2636
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 198</span>
2637
+
2638
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_from_steam_id identifier id'>from_steam_id</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='rparen token'>)</span>
2639
+ <span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_convert_steam_id_to_community_id identifier id'>convert_steam_id_to_community_id</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
2640
+ <span class='rubyid_end end kw'>end</span>
2641
+ </pre>
2642
+ </td>
2643
+ </tr>
2644
+ </table>
2645
+ </div>
2646
+
2647
+ <div class="method_details ">
2648
+ <p class="signature " id="steam_id_to_community_id-class_method">
2649
+
2650
+ + (<tt>Fixnum</tt>) <strong>steam_id_to_community_id</strong>(steam_id)
2651
+
2652
+
2653
+
2654
+ <span class="aliases">Also known as:
2655
+ <span class="names"><span id='convert_steam_id_to_community_id-class_method'>convert_steam_id_to_community_id</span></span>
2656
+ </span>
2657
+
2658
+ </p><div class="docstring">
2659
+ <div class="discussion">
2660
+ <p>Converts a SteamID as reported by game servers to a 64bit numeric SteamID
2661
+ as used by the Steam Community</p>
2662
+
2663
+
2664
+ </div>
2665
+ </div>
2666
+ <div class="tags">
2667
+ <h3>Parameters:</h3>
2668
+ <ul class="param">
2669
+
2670
+ <li>
2671
+
2672
+ <span class='name'>steam_id</span>
2673
+
2674
+
2675
+ <span class='type'>(<tt>String</tt>)</span>
2676
+
2677
+
2678
+
2679
+ &mdash;
2680
+ <div class='inline'><p>The SteamID string as used on servers, like
2681
+ <code>STEAM_0:0:12345</code></p>
2682
+ </div>
2683
+
2684
+ </li>
2685
+
2686
+ </ul>
2687
+
2688
+ <h3>Returns:</h3>
2689
+ <ul class="return">
2690
+
2691
+ <li>
2692
+
2693
+
2694
+ <span class='type'>(<tt>Fixnum</tt>)</span>
2695
+
2696
+
2697
+
2698
+ &mdash;
2699
+ <div class='inline'><p>The converted 64bit numeric SteamID</p>
2700
+ </div>
2701
+
2702
+ </li>
2703
+
2704
+ </ul>
2705
+ <h3>Raises:</h3>
2706
+ <ul class="raise">
2707
+
2708
+ <li>
2709
+
2710
+
2711
+ <span class='type'>(<tt><span class='object_link'><a href="Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
2712
+
2713
+
2714
+
2715
+ &mdash;
2716
+ <div class='inline'><p>if the SteamID doesn&#39;t have the correct format</p>
2717
+ </div>
2718
+
2719
+ </li>
2720
+
2721
+ </ul>
2722
+
2723
+ </div><table class="source_code">
2724
+ <tr>
2725
+ <td>
2726
+ <pre class="lines">
2727
+
2728
+
2729
+ 170
2730
+ 171
2731
+ 172
2732
+ 173
2733
+ 174
2734
+ 175
2735
+ 176
2736
+ 177
2737
+ 178
2738
+ 179
2739
+ 180</pre>
2740
+ </td>
2741
+ <td>
2742
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 170</span>
2743
+
2744
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_steam_id_to_community_id identifier id'>steam_id_to_community_id</span><span class='lparen token'>(</span><span class='rubyid_steam_id identifier id'>steam_id</span><span class='rparen token'>)</span>
2745
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_steam_id identifier id'>steam_id</span> <span class='eq op'>==</span> <span class='string val'>'STEAM_ID_LAN'</span> <span class='orop op'>||</span> <span class='rubyid_steam_id identifier id'>steam_id</span> <span class='eq op'>==</span> <span class='string val'>'BOT'</span>
2746
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='dstring node'>&quot;Cannot convert SteamID \&quot;#{steam_id}\&quot; to a community ID.&quot;</span>
2747
+ <span class='rubyid_elsif elsif kw'>elsif</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span><span class='lparen token'>(</span><span class='regexp val'>/^STEAM_[0-1]:[0-1]:[0-9]+$/</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
2748
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='dstring node'>&quot;SteamID \&quot;#{steam_id}\&quot; doesn't have the correct format.&quot;</span>
2749
+ <span class='rubyid_end end kw'>end</span>
2750
+
2751
+ <span class='rubyid_steam_id identifier id'>steam_id</span> <span class='assign token'>=</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='lbrack token'>[</span><span class='float val'>6</span><span class='dot2 op'>..</span><span class='integer val'>-1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>':'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_map! fid id'>map!</span><span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='rubyid_s identifier id'>s</span><span class='bitor op'>|</span> <span class='rubyid_s identifier id'>s</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='rbrace token'>}</span>
2752
+
2753
+ <span class='rubyid_steam_id identifier id'>steam_id</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='plus op'>+</span> <span class='rubyid_steam_id identifier id'>steam_id</span><span class='lbrack token'>[</span><span class='integer val'>2</span><span class='rbrack token'>]</span> <span class='mult op'>*</span> <span class='integer val'>2</span> <span class='plus op'>+</span> <span class='integer val'>76561197960265728</span>
2754
+ <span class='rubyid_end end kw'>end</span>
2755
+ </pre>
2756
+ </td>
2757
+ </tr>
2758
+ </table>
2759
+ </div>
2760
+
2761
+ </div>
2762
+
2763
+ <div id="instance_method_details" class="method_details_list">
2764
+ <h2>Instance Method Details</h2>
2765
+
2766
+
2767
+ <div class="method_details first">
2768
+ <p class="signature first" id="banned?-instance_method">
2769
+
2770
+ - (<tt>Boolean</tt>) <strong>banned?</strong>
2771
+
2772
+
2773
+
2774
+ <span class="aliases">Also known as:
2775
+ <span class="names"><span id='is_banned?-instance_method'>is_banned?</span></span>
2776
+ </span>
2777
+
2778
+ </p><div class="docstring">
2779
+ <div class="discussion">
2780
+ <p>Returns whether the owner of this SteamID is VAC banned</p>
2781
+
2782
+
2783
+ </div>
2784
+ </div>
2785
+ <div class="tags">
2786
+
2787
+ <h3>Returns:</h3>
2788
+ <ul class="return">
2789
+
2790
+ <li>
2791
+
2792
+
2793
+ <span class='type'>(<tt>Boolean</tt>)</span>
2794
+
2795
+
2796
+
2797
+ &mdash;
2798
+ <div class='inline'><p><code>true</code> if the user has been banned by VAC</p>
2799
+ </div>
2800
+
2801
+ </li>
2802
+
2803
+ </ul>
2804
+
2805
+ </div><table class="source_code">
2806
+ <tr>
2807
+ <td>
2808
+ <pre class="lines">
2809
+
2810
+
2811
+ 221
2812
+ 222
2813
+ 223</pre>
2814
+ </td>
2815
+ <td>
2816
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 221</span>
2817
+
2818
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_banned? fid id'>banned?</span>
2819
+ <span class='rubyid_@vac_banned ivar id'>@vac_banned</span>
2820
+ <span class='rubyid_end end kw'>end</span>
2821
+ </pre>
2822
+ </td>
2823
+ </tr>
2824
+ </table>
2825
+ </div>
2826
+
2827
+ <div class="method_details ">
2828
+ <p class="signature " id="base_url-instance_method">
2829
+
2830
+ - (<tt>String</tt>) <strong>base_url</strong>
2831
+
2832
+
2833
+
2834
+ </p><div class="docstring">
2835
+ <div class="discussion">
2836
+ <p>Returns the base URL for this Steam ID</p>
2837
+
2838
+ <p>This URL is different for Steam IDs having a custom URL.</p>
2839
+
2840
+
2841
+ </div>
2842
+ </div>
2843
+ <div class="tags">
2844
+
2845
+ <h3>Returns:</h3>
2846
+ <ul class="return">
2847
+
2848
+ <li>
2849
+
2850
+
2851
+ <span class='type'>(<tt>String</tt>)</span>
2852
+
2853
+
2854
+
2855
+ &mdash;
2856
+ <div class='inline'><p>The base URL for this SteamID</p>
2857
+ </div>
2858
+
2859
+ </li>
2860
+
2861
+ </ul>
2862
+
2863
+ </div><table class="source_code">
2864
+ <tr>
2865
+ <td>
2866
+ <pre class="lines">
2867
+
2868
+
2869
+ 231
2870
+ 232
2871
+ 233
2872
+ 234
2873
+ 235
2874
+ 236
2875
+ 237</pre>
2876
+ </td>
2877
+ <td>
2878
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 231</span>
2879
+
2880
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_base_url identifier id'>base_url</span>
2881
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_@custom_url ivar id'>@custom_url</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
2882
+ <span class='string val'>&quot;http://steamcommunity.com/profiles/#@steam_id64&quot;</span>
2883
+ <span class='rubyid_else else kw'>else</span>
2884
+ <span class='string val'>&quot;http://steamcommunity.com/id/#@custom_url&quot;</span>
2885
+ <span class='rubyid_end end kw'>end</span>
2886
+ <span class='rubyid_end end kw'>end</span>
2887
+ </pre>
2888
+ </td>
2889
+ </tr>
2890
+ </table>
2891
+ </div>
2892
+
2893
+ <div class="method_details ">
2894
+ <p class="signature " id="fetch-instance_method">
2895
+
2896
+ - (<tt>Object</tt>) <strong>fetch</strong>
2897
+
2898
+
2899
+
2900
+ </p><div class="docstring">
2901
+ <div class="discussion">
2902
+ <p>Fetchs data from the Steam Community by querying the XML version of the
2903
+ profile specified by the ID of this Steam ID</p>
2904
+
2905
+
2906
+ </div>
2907
+ </div>
2908
+ <div class="tags">
2909
+
2910
+ <h3>Raises:</h3>
2911
+ <ul class="raise">
2912
+
2913
+ <li>
2914
+
2915
+
2916
+ <span class='type'>(<tt><span class='object_link'><a href="Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
2917
+
2918
+
2919
+
2920
+ &mdash;
2921
+ <div class='inline'><p>if the Steam ID data is not available, e.g. when it is
2922
+ private</p>
2923
+ </div>
2924
+
2925
+ </li>
2926
+
2927
+ </ul>
2928
+
2929
+ <h3>See Also:</h3>
2930
+ <ul class="see">
2931
+
2932
+ <li><span class='object_link'><a href="Cacheable.html#fetch-instance_method" title="SteamCondenser::Cacheable#fetch (method)">Cacheable#fetch</a></span></li>
2933
+
2934
+ </ul>
2935
+
2936
+ </div><table class="source_code">
2937
+ <tr>
2938
+ <td>
2939
+ <pre class="lines">
2940
+
2941
+
2942
+ 245
2943
+ 246
2944
+ 247
2945
+ 248
2946
+ 249
2947
+ 250
2948
+ 251
2949
+ 252
2950
+ 253
2951
+ 254
2952
+ 255
2953
+ 256
2954
+ 257
2955
+ 258
2956
+ 259
2957
+ 260
2958
+ 261
2959
+ 262
2960
+ 263
2961
+ 264
2962
+ 265
2963
+ 266
2964
+ 267
2965
+ 268
2966
+ 269
2967
+ 270
2968
+ 271
2969
+ 272
2970
+ 273
2971
+ 274
2972
+ 275
2973
+ 276
2974
+ 277
2975
+ 278
2976
+ 279
2977
+ 280
2978
+ 281
2979
+ 282
2980
+ 283
2981
+ 284
2982
+ 285
2983
+ 286
2984
+ 287
2985
+ 288
2986
+ 289
2987
+ 290
2988
+ 291
2989
+ 292
2990
+ 293
2991
+ 294
2992
+ 295
2993
+ 296
2994
+ 297
2995
+ 298
2996
+ 299
2997
+ 300
2998
+ 301
2999
+ 302
3000
+ 303
3001
+ 304
3002
+ 305
3003
+ 306
3004
+ 307
3005
+ 308
3006
+ 309
3007
+ 310
3008
+ 311
3009
+ 312
3010
+ 313</pre>
3011
+ </td>
3012
+ <td>
3013
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 245</span>
3014
+
3015
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_fetch identifier id'>fetch</span>
3016
+ <span class='rubyid_begin begin kw'>begin</span>
3017
+ <span class='rubyid_profile identifier id'>profile</span> <span class='assign token'>=</span> <span class='rubyid_parse identifier id'>parse</span> <span class='dstring node'>&quot;#{base_url}?xml=1&quot;</span>
3018
+
3019
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_profile identifier id'>profile</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'error'</span>
3020
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'error'</span><span class='rbrack token'>]</span>
3021
+ <span class='rubyid_end end kw'>end</span>
3022
+
3023
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_profile identifier id'>profile</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'privacyMessage'</span>
3024
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'privacyMessage'</span><span class='rbrack token'>]</span>
3025
+ <span class='rubyid_end end kw'>end</span>
3026
+
3027
+ <span class='rubyid_@nickname ivar id'>@nickname</span> <span class='assign token'>=</span> <span class='rubyid_CGI constant id'>CGI</span><span class='dot token'>.</span><span class='rubyid_unescapeHTML identifier id'>unescapeHTML</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'steamID'</span><span class='rbrack token'>]</span>
3028
+ <span class='rubyid_@steam_id64 ivar id'>@steam_id64</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'steamID64'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
3029
+ <span class='rubyid_@limited ivar id'>@limited</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'isLimitedAccount'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='eq op'>==</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
3030
+ <span class='rubyid_@trade_ban_state ivar id'>@trade_ban_state</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'tradeBanState'</span><span class='rbrack token'>]</span>
3031
+ <span class='rubyid_@vac_banned ivar id'>@vac_banned</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'vacBanned'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> <span class='eq op'>==</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
3032
+
3033
+ <span class='rubyid_@image_url ivar id'>@image_url</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'avatarIcon'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='dot2 op'>..</span><span class='integer val'>-5</span><span class='rbrack token'>]</span>
3034
+ <span class='rubyid_@online_state ivar id'>@online_state</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'onlineState'</span><span class='rbrack token'>]</span>
3035
+ <span class='rubyid_@privacy_state ivar id'>@privacy_state</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'privacyState'</span><span class='rbrack token'>]</span>
3036
+ <span class='rubyid_@state_message ivar id'>@state_message</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'stateMessage'</span><span class='rbrack token'>]</span>
3037
+ <span class='rubyid_@visibility_state ivar id'>@visibility_state</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'visibilityState'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
3038
+
3039
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_public? fid id'>public?</span>
3040
+ <span class='rubyid_@custom_url ivar id'>@custom_url</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'customURL'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_downcase identifier id'>downcase</span>
3041
+ <span class='rubyid_@custom_url ivar id'>@custom_url</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@custom_url ivar id'>@custom_url</span><span class='dot token'>.</span><span class='rubyid_empty? fid id'>empty?</span>
3042
+
3043
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_profile identifier id'>profile</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'favoriteGame'</span>
3044
+ <span class='rubyid_@favorite_game ivar id'>@favorite_game</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'favoriteGame'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'name'</span><span class='rbrack token'>]</span>
3045
+ <span class='rubyid_@favorite_game_hours_played ivar id'>@favorite_game_hours_played</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'favoriteGame'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'hoursPlayed2wk'</span><span class='rbrack token'>]</span>
3046
+ <span class='rubyid_end end kw'>end</span>
3047
+
3048
+ <span class='rubyid_@head_line ivar id'>@head_line</span> <span class='assign token'>=</span> <span class='rubyid_CGI constant id'>CGI</span><span class='dot token'>.</span><span class='rubyid_unescapeHTML identifier id'>unescapeHTML</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'headline'</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>''</span>
3049
+ <span class='rubyid_@hours_played ivar id'>@hours_played</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'hoursPlayed2Wk'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
3050
+ <span class='rubyid_@location ivar id'>@location</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'location'</span><span class='rbrack token'>]</span>
3051
+ <span class='rubyid_@member_since ivar id'>@member_since</span> <span class='assign token'>=</span> <span class='rubyid_Time constant id'>Time</span><span class='dot token'>.</span><span class='rubyid_parse identifier id'>parse</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'memberSince'</span><span class='rbrack token'>]</span>
3052
+ <span class='rubyid_@real_name ivar id'>@real_name</span> <span class='assign token'>=</span> <span class='rubyid_CGI constant id'>CGI</span><span class='dot token'>.</span><span class='rubyid_unescapeHTML identifier id'>unescapeHTML</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'realname'</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>''</span>
3053
+ <span class='rubyid_@steam_rating ivar id'>@steam_rating</span> <span class='assign token'>=</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'steamRating'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
3054
+ <span class='rubyid_@summary ivar id'>@summary</span> <span class='assign token'>=</span> <span class='rubyid_CGI constant id'>CGI</span><span class='dot token'>.</span><span class='rubyid_unescapeHTML identifier id'>unescapeHTML</span> <span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'summary'</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>''</span>
3055
+
3056
+ <span class='rubyid_@most_played_games ivar id'>@most_played_games</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
3057
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_profile identifier id'>profile</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'mostPlayedGames'</span>
3058
+ <span class='lbrack token'>[</span><span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'mostPlayedGames'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'mostPlayedGame'</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_flatten identifier id'>flatten</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_most_played_game identifier id'>most_played_game</span><span class='bitor op'>|</span>
3059
+ <span class='rubyid_@most_played_games ivar id'>@most_played_games</span><span class='lbrack token'>[</span><span class='rubyid_most_played_game identifier id'>most_played_game</span><span class='lbrack token'>[</span><span class='string val'>'gameName'</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_most_played_game identifier id'>most_played_game</span><span class='lbrack token'>[</span><span class='string val'>'hoursPlayed'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
3060
+ <span class='rubyid_end end kw'>end</span>
3061
+ <span class='rubyid_end end kw'>end</span>
3062
+
3063
+ <span class='rubyid_@groups ivar id'>@groups</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
3064
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_profile identifier id'>profile</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'groups'</span>
3065
+ <span class='lbrack token'>[</span><span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'groups'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'group'</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_flatten identifier id'>flatten</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_group identifier id'>group</span><span class='bitor op'>|</span>
3066
+ <span class='rubyid_@groups ivar id'>@groups</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_SteamGroup constant id'>SteamGroup</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_group identifier id'>group</span><span class='lbrack token'>[</span><span class='string val'>'groupID64'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='comma token'>,</span> <span class='rubyid_false false kw'>false</span><span class='rparen token'>)</span>
3067
+ <span class='rubyid_end end kw'>end</span>
3068
+ <span class='rubyid_end end kw'>end</span>
3069
+
3070
+ <span class='rubyid_@links ivar id'>@links</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
3071
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_profile identifier id'>profile</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'weblinks'</span>
3072
+ <span class='lbrack token'>[</span><span class='rubyid_profile identifier id'>profile</span><span class='lbrack token'>[</span><span class='string val'>'weblinks'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'weblink'</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_flatten identifier id'>flatten</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_link identifier id'>link</span><span class='bitor op'>|</span>
3073
+ <span class='rubyid_@links ivar id'>@links</span><span class='lbrack token'>[</span><span class='rubyid_CGI constant id'>CGI</span><span class='dot token'>.</span><span class='rubyid_unescapeHTML identifier id'>unescapeHTML</span> <span class='rubyid_link identifier id'>link</span><span class='lbrack token'>[</span><span class='string val'>'title'</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_link identifier id'>link</span><span class='lbrack token'>[</span><span class='string val'>'link'</span><span class='rbrack token'>]</span>
3074
+ <span class='rubyid_end end kw'>end</span>
3075
+ <span class='rubyid_end end kw'>end</span>
3076
+ <span class='rubyid_end end kw'>end</span>
3077
+ <span class='rubyid_rescue rescue kw'>rescue</span>
3078
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_$! gvar id'>$!</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_$! gvar id'>$!</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Error constant id'>Error</span>
3079
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='string val'>'XML data could not be parsed.'</span><span class='comma token'>,</span> <span class='rubyid_$! gvar id'>$!</span><span class='dot token'>.</span><span class='rubyid_backtrace identifier id'>backtrace</span>
3080
+ <span class='rubyid_end end kw'>end</span>
3081
+
3082
+ <span class='rubyid_super super kw'>super</span>
3083
+ <span class='rubyid_end end kw'>end</span>
3084
+ </pre>
3085
+ </td>
3086
+ </tr>
3087
+ </table>
3088
+ </div>
3089
+
3090
+ <div class="method_details ">
3091
+ <p class="signature " id="fetch_friends-instance_method">
3092
+
3093
+ - (<tt>Object</tt>) <strong>fetch_friends</strong>
3094
+
3095
+
3096
+
3097
+ </p><div class="docstring">
3098
+ <div class="discussion">
3099
+ <p>Fetches the friends of this user</p>
3100
+
3101
+ <p>This creates a new <code>SteamId</code> instance for each of the friends without
3102
+ fetching their data.</p>
3103
+
3104
+
3105
+ </div>
3106
+ </div>
3107
+ <div class="tags">
3108
+
3109
+
3110
+ <h3>See Also:</h3>
3111
+ <ul class="see">
3112
+
3113
+ <li><span class='object_link'><a href="#friends-instance_method" title="SteamCondenser::SteamId#friends (method)">#friends</a></span></li>
3114
+
3115
+ <li><span class='object_link'><a href="#initialize-instance_method" title="SteamCondenser::SteamId#initialize (method)">#initialize</a></span></li>
3116
+
3117
+ </ul>
3118
+
3119
+ </div><table class="source_code">
3120
+ <tr>
3121
+ <td>
3122
+ <pre class="lines">
3123
+
3124
+
3125
+ 322
3126
+ 323
3127
+ 324
3128
+ 325
3129
+ 326
3130
+ 327
3131
+ 328</pre>
3132
+ </td>
3133
+ <td>
3134
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 322</span>
3135
+
3136
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_fetch_friends identifier id'>fetch_friends</span>
3137
+ <span class='rubyid_@friends ivar id'>@friends</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
3138
+ <span class='rubyid_friends_data identifier id'>friends_data</span> <span class='assign token'>=</span> <span class='rubyid_parse identifier id'>parse</span> <span class='dstring node'>&quot;#{base_url}/friends?xml=1&quot;</span>
3139
+ <span class='rubyid_friends_data identifier id'>friends_data</span><span class='lbrack token'>[</span><span class='string val'>'friends'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'friend'</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_friend identifier id'>friend</span><span class='bitor op'>|</span>
3140
+ <span class='rubyid_@friends ivar id'>@friends</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_SteamId constant id'>SteamId</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_friend identifier id'>friend</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='comma token'>,</span> <span class='rubyid_false false kw'>false</span><span class='rparen token'>)</span>
3141
+ <span class='rubyid_end end kw'>end</span>
3142
+ <span class='rubyid_end end kw'>end</span>
3143
+ </pre>
3144
+ </td>
3145
+ </tr>
3146
+ </table>
3147
+ </div>
3148
+
3149
+ <div class="method_details ">
3150
+ <p class="signature " id="fetch_games-instance_method">
3151
+
3152
+ - (<tt>Object</tt>) <strong>fetch_games</strong>
3153
+
3154
+
3155
+
3156
+ </p><div class="docstring">
3157
+ <div class="discussion">
3158
+ <p>Fetches the games this user owns</p>
3159
+
3160
+ <p>This fills the game hash with the names of the games as keys. The values
3161
+ will either be <code>false</code> if the game does not have stats or the game&#39;s
3162
+ &quot;friendly name&quot;.</p>
3163
+
3164
+
3165
+ </div>
3166
+ </div>
3167
+ <div class="tags">
3168
+
3169
+
3170
+ <h3>See Also:</h3>
3171
+ <ul class="see">
3172
+
3173
+ <li><span class='object_link'><a href="#games-instance_method" title="SteamCondenser::SteamId#games (method)">#games</a></span></li>
3174
+
3175
+ </ul>
3176
+
3177
+ </div><table class="source_code">
3178
+ <tr>
3179
+ <td>
3180
+ <pre class="lines">
3181
+
3182
+
3183
+ 337
3184
+ 338
3185
+ 339
3186
+ 340
3187
+ 341
3188
+ 342
3189
+ 343
3190
+ 344
3191
+ 345
3192
+ 346
3193
+ 347
3194
+ 348
3195
+ 349
3196
+ 350
3197
+ 351
3198
+ 352
3199
+ 353
3200
+ 354
3201
+ 355
3202
+ 356</pre>
3203
+ </td>
3204
+ <td>
3205
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 337</span>
3206
+
3207
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_fetch_games identifier id'>fetch_games</span>
3208
+ <span class='rubyid_@games ivar id'>@games</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
3209
+ <span class='rubyid_@playtimes ivar id'>@playtimes</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
3210
+ <span class='rubyid_games_data identifier id'>games_data</span> <span class='assign token'>=</span> <span class='rubyid_parse identifier id'>parse</span> <span class='dstring node'>&quot;#{base_url}/games?xml=1&quot;</span>
3211
+ <span class='lbrack token'>[</span><span class='rubyid_games_data identifier id'>games_data</span><span class='lbrack token'>[</span><span class='string val'>'games'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'game'</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_flatten identifier id'>flatten</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_game_data identifier id'>game_data</span><span class='bitor op'>|</span>
3212
+ <span class='rubyid_app_id identifier id'>app_id</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'appID'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span>
3213
+ <span class='rubyid_game identifier id'>game</span> <span class='assign token'>=</span> <span class='rubyid_SteamGame constant id'>SteamGame</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='rubyid_app_id identifier id'>app_id</span><span class='comma token'>,</span> <span class='rubyid_game_data identifier id'>game_data</span>
3214
+ <span class='rubyid_@games ivar id'>@games</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='rubyid_game identifier id'>game</span>
3215
+ <span class='rubyid_recent identifier id'>recent</span> <span class='assign token'>=</span> <span class='rubyid_total identifier id'>total</span> <span class='assign token'>=</span> <span class='integer val'>0</span>
3216
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'hoursLast2Weeks'</span>
3217
+ <span class='rubyid_recent identifier id'>recent</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'hoursLast2Weeks'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
3218
+ <span class='rubyid_end end kw'>end</span>
3219
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='dot token'>.</span><span class='rubyid_key? fid id'>key?</span> <span class='string val'>'hoursOnRecord'</span>
3220
+ <span class='rubyid_total identifier id'>total</span> <span class='assign token'>=</span> <span class='rubyid_game_data identifier id'>game_data</span><span class='lbrack token'>[</span><span class='string val'>'hoursOnRecord'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_f identifier id'>to_f</span>
3221
+ <span class='rubyid_end end kw'>end</span>
3222
+ <span class='rubyid_@playtimes ivar id'>@playtimes</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='lparen token'>(</span><span class='rubyid_recent identifier id'>recent</span> <span class='mult op'>*</span> <span class='integer val'>60</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='comma token'>,</span> <span class='lparen token'>(</span><span class='rubyid_total identifier id'>total</span> <span class='mult op'>*</span> <span class='integer val'>60</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='rbrack token'>]</span>
3223
+ <span class='rubyid_end end kw'>end</span>
3224
+
3225
+ <span class='rubyid_true true kw'>true</span>
3226
+ <span class='rubyid_end end kw'>end</span>
3227
+ </pre>
3228
+ </td>
3229
+ </tr>
3230
+ </table>
3231
+ </div>
3232
+
3233
+ <div class="method_details ">
3234
+ <p class="signature " id="find_game-instance_method">
3235
+
3236
+ - (<tt><span class='object_link'><a href="SteamGame.html" title="SteamCondenser::SteamGame (class)">SteamGame</a></span></tt>) <strong>find_game</strong>(id) <span class="extras">(private)</span>
3237
+
3238
+
3239
+
3240
+ </p><div class="docstring">
3241
+ <div class="discussion">
3242
+ <p>Tries to find a game instance with the given application ID or full name
3243
+ or short name</p>
3244
+
3245
+
3246
+ </div>
3247
+ </div>
3248
+ <div class="tags">
3249
+ <h3>Parameters:</h3>
3250
+ <ul class="param">
3251
+
3252
+ <li>
3253
+
3254
+ <span class='name'>id</span>
3255
+
3256
+
3257
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
3258
+
3259
+
3260
+
3261
+ &mdash;
3262
+ <div class='inline'><p>The full or short name or the application ID
3263
+ of the game</p>
3264
+ </div>
3265
+
3266
+ </li>
3267
+
3268
+ </ul>
3269
+
3270
+ <h3>Returns:</h3>
3271
+ <ul class="return">
3272
+
3273
+ <li>
3274
+
3275
+
3276
+ <span class='type'>(<tt><span class='object_link'><a href="SteamGame.html" title="SteamCondenser::SteamGame (class)">SteamGame</a></span></tt>)</span>
3277
+
3278
+
3279
+
3280
+ &mdash;
3281
+ <div class='inline'><p>The game found with the given ID</p>
3282
+ </div>
3283
+
3284
+ </li>
3285
+
3286
+ </ul>
3287
+ <h3>Raises:</h3>
3288
+ <ul class="raise">
3289
+
3290
+ <li>
3291
+
3292
+
3293
+ <span class='type'>(<tt><span class='object_link'><a href="Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
3294
+
3295
+
3296
+
3297
+ &mdash;
3298
+ <div class='inline'><p>if the user does not own the game or no game with the
3299
+ given ID exists</p>
3300
+ </div>
3301
+
3302
+ </li>
3303
+
3304
+ </ul>
3305
+
3306
+ </div><table class="source_code">
3307
+ <tr>
3308
+ <td>
3309
+ <pre class="lines">
3310
+
3311
+
3312
+ 495
3313
+ 496
3314
+ 497
3315
+ 498
3316
+ 499
3317
+ 500
3318
+ 501
3319
+ 502
3320
+ 503
3321
+ 504
3322
+ 505
3323
+ 506
3324
+ 507
3325
+ 508
3326
+ 509
3327
+ 510
3328
+ 511
3329
+ 512
3330
+ 513
3331
+ 514</pre>
3332
+ </td>
3333
+ <td>
3334
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 495</span>
3335
+
3336
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_find_game identifier id'>find_game</span><span class='lparen token'>(</span><span class='rubyid_id identifier id'>id</span><span class='rparen token'>)</span>
3337
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_id identifier id'>id</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Integer constant id'>Integer</span>
3338
+ <span class='rubyid_game identifier id'>game</span> <span class='assign token'>=</span> <span class='rubyid_games identifier id'>games</span><span class='lbrack token'>[</span><span class='rubyid_id identifier id'>id</span><span class='rbrack token'>]</span>
3339
+ <span class='rubyid_else else kw'>else</span>
3340
+ <span class='rubyid_game identifier id'>game</span> <span class='assign token'>=</span> <span class='rubyid_games identifier id'>games</span><span class='dot token'>.</span><span class='rubyid_values identifier id'>values</span><span class='dot token'>.</span><span class='rubyid_find identifier id'>find</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_game identifier id'>game</span><span class='bitor op'>|</span>
3341
+ <span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_short_name identifier id'>short_name</span> <span class='eq op'>==</span> <span class='rubyid_id identifier id'>id</span> <span class='orop op'>||</span> <span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span> <span class='eq op'>==</span> <span class='rubyid_id identifier id'>id</span>
3342
+ <span class='rubyid_end end kw'>end</span>
3343
+ <span class='rubyid_end end kw'>end</span>
3344
+
3345
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
3346
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_id identifier id'>id</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Numeric constant id'>Numeric</span>
3347
+ <span class='rubyid_message identifier id'>message</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;This SteamID does not own a game with application ID #{id}.&quot;</span>
3348
+ <span class='rubyid_else else kw'>else</span>
3349
+ <span class='rubyid_message identifier id'>message</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;This SteamID does not own the game \&quot;#{id}\&quot;.&quot;</span>
3350
+ <span class='rubyid_end end kw'>end</span>
3351
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='rubyid_message identifier id'>message</span>
3352
+ <span class='rubyid_end end kw'>end</span>
3353
+
3354
+ <span class='rubyid_game identifier id'>game</span>
3355
+ <span class='rubyid_end end kw'>end</span>
3356
+ </pre>
3357
+ </td>
3358
+ </tr>
3359
+ </table>
3360
+ </div>
3361
+
3362
+ <div class="method_details ">
3363
+ <p class="signature " id="friends-instance_method">
3364
+
3365
+ - (<tt>Array&lt;<span class='object_link'><a href="" title="SteamCondenser::SteamId (class)">SteamId</a></span>&gt;</tt>) <strong>friends</strong>
3366
+
3367
+
3368
+
3369
+ </p><div class="docstring">
3370
+ <div class="discussion">
3371
+ <p>Returns the Steam Community friends of this user</p>
3372
+
3373
+ <p>If the friends haven&#39;t been fetched yet, this is done now.</p>
3374
+
3375
+
3376
+ </div>
3377
+ </div>
3378
+ <div class="tags">
3379
+
3380
+ <h3>Returns:</h3>
3381
+ <ul class="return">
3382
+
3383
+ <li>
3384
+
3385
+
3386
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="" title="SteamCondenser::SteamId (class)">SteamId</a></span>&gt;</tt>)</span>
3387
+
3388
+
3389
+
3390
+ &mdash;
3391
+ <div class='inline'><p> The friends of this user</p>
3392
+ </div>
3393
+
3394
+ </li>
3395
+
3396
+ </ul>
3397
+
3398
+ <h3>See Also:</h3>
3399
+ <ul class="see">
3400
+
3401
+ <li><span class='object_link'><a href="#fetch_friends-instance_method" title="SteamCondenser::SteamId#fetch_friends (method)">#fetch_friends</a></span></li>
3402
+
3403
+ </ul>
3404
+
3405
+ </div><table class="source_code">
3406
+ <tr>
3407
+ <td>
3408
+ <pre class="lines">
3409
+
3410
+
3411
+ 390
3412
+ 391
3413
+ 392
3414
+ 393</pre>
3415
+ </td>
3416
+ <td>
3417
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 390</span>
3418
+
3419
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_friends identifier id'>friends</span>
3420
+ <span class='rubyid_fetch_friends identifier id'>fetch_friends</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@friends ivar id'>@friends</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
3421
+ <span class='rubyid_@friends ivar id'>@friends</span>
3422
+ <span class='rubyid_end end kw'>end</span>
3423
+ </pre>
3424
+ </td>
3425
+ </tr>
3426
+ </table>
3427
+ </div>
3428
+
3429
+ <div class="method_details ">
3430
+ <p class="signature " id="full_avatar_url-instance_method">
3431
+
3432
+ - (<tt>String</tt>) <strong>full_avatar_url</strong>
3433
+
3434
+
3435
+
3436
+ </p><div class="docstring">
3437
+ <div class="discussion">
3438
+ <p>Returns the URL of the full-sized version of this user&#39;s avatar</p>
3439
+
3440
+
3441
+ </div>
3442
+ </div>
3443
+ <div class="tags">
3444
+
3445
+ <h3>Returns:</h3>
3446
+ <ul class="return">
3447
+
3448
+ <li>
3449
+
3450
+
3451
+ <span class='type'>(<tt>String</tt>)</span>
3452
+
3453
+
3454
+
3455
+ &mdash;
3456
+ <div class='inline'><p>The URL of the full-sized avatar</p>
3457
+ </div>
3458
+
3459
+ </li>
3460
+
3461
+ </ul>
3462
+
3463
+ </div><table class="source_code">
3464
+ <tr>
3465
+ <td>
3466
+ <pre class="lines">
3467
+
3468
+
3469
+ 361
3470
+ 362
3471
+ 363</pre>
3472
+ </td>
3473
+ <td>
3474
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 361</span>
3475
+
3476
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_full_avatar_url identifier id'>full_avatar_url</span>
3477
+ <span class='dstring node'>&quot;#{@image_url}_full.jpg&quot;</span>
3478
+ <span class='rubyid_end end kw'>end</span>
3479
+ </pre>
3480
+ </td>
3481
+ </tr>
3482
+ </table>
3483
+ </div>
3484
+
3485
+ <div class="method_details ">
3486
+ <p class="signature " id="game_stats-instance_method">
3487
+
3488
+ - (<tt><span class='object_link'><a href="GameStats.html" title="SteamCondenser::GameStats (class)">GameStats</a></span></tt>) <strong>game_stats</strong>(id)
3489
+
3490
+
3491
+
3492
+ </p><div class="docstring">
3493
+ <div class="discussion">
3494
+ <p>Returns the stats for the given game for the owner of this SteamID</p>
3495
+
3496
+
3497
+ </div>
3498
+ </div>
3499
+ <div class="tags">
3500
+ <h3>Parameters:</h3>
3501
+ <ul class="param">
3502
+
3503
+ <li>
3504
+
3505
+ <span class='name'>id</span>
3506
+
3507
+
3508
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
3509
+
3510
+
3511
+
3512
+ &mdash;
3513
+ <div class='inline'><p>The full or short name or the application ID
3514
+ of the game stats should be fetched for</p>
3515
+ </div>
3516
+
3517
+ </li>
3518
+
3519
+ </ul>
3520
+
3521
+ <h3>Returns:</h3>
3522
+ <ul class="return">
3523
+
3524
+ <li>
3525
+
3526
+
3527
+ <span class='type'>(<tt><span class='object_link'><a href="GameStats.html" title="SteamCondenser::GameStats (class)">GameStats</a></span></tt>)</span>
3528
+
3529
+
3530
+
3531
+ &mdash;
3532
+ <div class='inline'><p>The statistics for the game with the given name</p>
3533
+ </div>
3534
+
3535
+ </li>
3536
+
3537
+ </ul>
3538
+ <h3>Raises:</h3>
3539
+ <ul class="raise">
3540
+
3541
+ <li>
3542
+
3543
+
3544
+ <span class='type'>(<tt><span class='object_link'><a href="Error.html" title="SteamCondenser::Error (class)">Error</a></span></tt>)</span>
3545
+
3546
+
3547
+
3548
+ &mdash;
3549
+ <div class='inline'><p>if the user does not own this game or it does not have any
3550
+ stats</p>
3551
+ </div>
3552
+
3553
+ </li>
3554
+
3555
+ </ul>
3556
+
3557
+ <h3>See Also:</h3>
3558
+ <ul class="see">
3559
+
3560
+ <li>find_game</li>
3561
+
3562
+ <li><span class='object_link'><a href="SteamGame.html#has_stats%3F-instance_method" title="SteamCondenser::SteamGame#has_stats? (method)">SteamCondenser::SteamGame#has_stats?</a></span></li>
3563
+
3564
+ </ul>
3565
+
3566
+ </div><table class="source_code">
3567
+ <tr>
3568
+ <td>
3569
+ <pre class="lines">
3570
+
3571
+
3572
+ 374
3573
+ 375
3574
+ 376
3575
+ 377
3576
+ 378
3577
+ 379
3578
+ 380
3579
+ 381
3580
+ 382</pre>
3581
+ </td>
3582
+ <td>
3583
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 374</span>
3584
+
3585
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_game_stats identifier id'>game_stats</span><span class='lparen token'>(</span><span class='rubyid_id identifier id'>id</span><span class='rparen token'>)</span>
3586
+ <span class='rubyid_game identifier id'>game</span> <span class='assign token'>=</span> <span class='rubyid_find_game identifier id'>find_game</span> <span class='rubyid_id identifier id'>id</span>
3587
+
3588
+ <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_has_stats? fid id'>has_stats?</span>
3589
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='dstring node'>&quot;\&quot;#{game.name}\&quot; does not have stats.&quot;</span>
3590
+ <span class='rubyid_end end kw'>end</span>
3591
+
3592
+ <span class='rubyid_GameStats constant id'>GameStats</span><span class='dot token'>.</span><span class='rubyid_create_game_stats identifier id'>create_game_stats</span><span class='lparen token'>(</span><span class='rubyid_@custom_url ivar id'>@custom_url</span> <span class='orop op'>||</span> <span class='rubyid_@steam_id64 ivar id'>@steam_id64</span><span class='comma token'>,</span> <span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_short_name identifier id'>short_name</span><span class='rparen token'>)</span>
3593
+ <span class='rubyid_end end kw'>end</span>
3594
+ </pre>
3595
+ </td>
3596
+ </tr>
3597
+ </table>
3598
+ </div>
3599
+
3600
+ <div class="method_details ">
3601
+ <p class="signature " id="games-instance_method">
3602
+
3603
+ - (<tt>Hash&lt;Fixnum, <span class='object_link'><a href="SteamGame.html" title="SteamCondenser::SteamGame (class)">SteamGame</a></span>&gt;</tt>) <strong>games</strong>
3604
+
3605
+
3606
+
3607
+ </p><div class="docstring">
3608
+ <div class="discussion">
3609
+ <p>Returns the games this user owns</p>
3610
+
3611
+ <p>The keys of the hash are the games&#39; application IDs and the values are
3612
+ the corresponding game instances.</p>
3613
+
3614
+ <p>If the friends haven&#39;t been fetched yet, this is done now.</p>
3615
+
3616
+
3617
+ </div>
3618
+ </div>
3619
+ <div class="tags">
3620
+
3621
+ <h3>Returns:</h3>
3622
+ <ul class="return">
3623
+
3624
+ <li>
3625
+
3626
+
3627
+ <span class='type'>(<tt>Hash&lt;Fixnum, <span class='object_link'><a href="SteamGame.html" title="SteamCondenser::SteamGame (class)">SteamGame</a></span>&gt;</tt>)</span>
3628
+
3629
+
3630
+
3631
+ &mdash;
3632
+ <div class='inline'><p>The games this user owns</p>
3633
+ </div>
3634
+
3635
+ </li>
3636
+
3637
+ </ul>
3638
+
3639
+ <h3>See Also:</h3>
3640
+ <ul class="see">
3641
+
3642
+ <li><span class='object_link'><a href="#fetch_games-instance_method" title="SteamCondenser::SteamId#fetch_games (method)">#fetch_games</a></span></li>
3643
+
3644
+ </ul>
3645
+
3646
+ </div><table class="source_code">
3647
+ <tr>
3648
+ <td>
3649
+ <pre class="lines">
3650
+
3651
+
3652
+ 404
3653
+ 405
3654
+ 406
3655
+ 407</pre>
3656
+ </td>
3657
+ <td>
3658
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 404</span>
3659
+
3660
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_games identifier id'>games</span>
3661
+ <span class='rubyid_fetch_games identifier id'>fetch_games</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_@games ivar id'>@games</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
3662
+ <span class='rubyid_@games ivar id'>@games</span>
3663
+ <span class='rubyid_end end kw'>end</span>
3664
+ </pre>
3665
+ </td>
3666
+ </tr>
3667
+ </table>
3668
+ </div>
3669
+
3670
+ <div class="method_details ">
3671
+ <p class="signature " id="icon_url-instance_method">
3672
+
3673
+ - (<tt>String</tt>) <strong>icon_url</strong>
3674
+
3675
+
3676
+
3677
+ </p><div class="docstring">
3678
+ <div class="discussion">
3679
+ <p>Returns the URL of the icon version of this user&#39;s avatar</p>
3680
+
3681
+
3682
+ </div>
3683
+ </div>
3684
+ <div class="tags">
3685
+
3686
+ <h3>Returns:</h3>
3687
+ <ul class="return">
3688
+
3689
+ <li>
3690
+
3691
+
3692
+ <span class='type'>(<tt>String</tt>)</span>
3693
+
3694
+
3695
+
3696
+ &mdash;
3697
+ <div class='inline'><p>The URL of the icon-sized avatar</p>
3698
+ </div>
3699
+
3700
+ </li>
3701
+
3702
+ </ul>
3703
+
3704
+ </div><table class="source_code">
3705
+ <tr>
3706
+ <td>
3707
+ <pre class="lines">
3708
+
3709
+
3710
+ 412
3711
+ 413
3712
+ 414</pre>
3713
+ </td>
3714
+ <td>
3715
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 412</span>
3716
+
3717
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_icon_url identifier id'>icon_url</span>
3718
+ <span class='string val'>&quot;#@image_url.jpg&quot;</span>
3719
+ <span class='rubyid_end end kw'>end</span>
3720
+ </pre>
3721
+ </td>
3722
+ </tr>
3723
+ </table>
3724
+ </div>
3725
+
3726
+ <div class="method_details ">
3727
+ <p class="signature " id="id-instance_method">
3728
+
3729
+ - (<tt>Fixnum</tt>, <tt>String</tt>) <strong>id</strong>
3730
+
3731
+
3732
+
3733
+ </p><div class="docstring">
3734
+ <div class="discussion">
3735
+ <p>Returns a unique identifier for this Steam ID</p>
3736
+
3737
+ <p>This is either the 64bit numeric SteamID or custom URL</p>
3738
+
3739
+
3740
+ </div>
3741
+ </div>
3742
+ <div class="tags">
3743
+
3744
+ <h3>Returns:</h3>
3745
+ <ul class="return">
3746
+
3747
+ <li>
3748
+
3749
+
3750
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
3751
+
3752
+
3753
+
3754
+ &mdash;
3755
+ <div class='inline'><p>The 64bit numeric SteamID or the custom URL</p>
3756
+ </div>
3757
+
3758
+ </li>
3759
+
3760
+ </ul>
3761
+
3762
+ </div><table class="source_code">
3763
+ <tr>
3764
+ <td>
3765
+ <pre class="lines">
3766
+
3767
+
3768
+ 421
3769
+ 422
3770
+ 423</pre>
3771
+ </td>
3772
+ <td>
3773
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 421</span>
3774
+
3775
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_id identifier id'>id</span>
3776
+ <span class='rubyid_@custom_url ivar id'>@custom_url</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span> <span class='integer val'>? </span><span class='rubyid_@steam_id64 ivar id'>@steam_id64</span> <span class='colon op'>:</span> <span class='rubyid_@custom_url ivar id'>@custom_url</span>
3777
+ <span class='rubyid_end end kw'>end</span>
3778
+ </pre>
3779
+ </td>
3780
+ </tr>
3781
+ </table>
3782
+ </div>
3783
+
3784
+ <div class="method_details ">
3785
+ <p class="signature " id="in_game?-instance_method">
3786
+
3787
+ - (<tt>Boolean</tt>) <strong>in_game?</strong>
3788
+
3789
+
3790
+
3791
+ <span class="aliases">Also known as:
3792
+ <span class="names"><span id='is_in_game?-instance_method'>is_in_game?</span></span>
3793
+ </span>
3794
+
3795
+ </p><div class="docstring">
3796
+ <div class="discussion">
3797
+ <p>Returns whether the owner of this SteamId is playing a game</p>
3798
+
3799
+
3800
+ </div>
3801
+ </div>
3802
+ <div class="tags">
3803
+
3804
+ <h3>Returns:</h3>
3805
+ <ul class="return">
3806
+
3807
+ <li>
3808
+
3809
+
3810
+ <span class='type'>(<tt>Boolean</tt>)</span>
3811
+
3812
+
3813
+
3814
+ &mdash;
3815
+ <div class='inline'><p><code>true</code> if the user is in-game</p>
3816
+ </div>
3817
+
3818
+ </li>
3819
+
3820
+ </ul>
3821
+
3822
+ </div><table class="source_code">
3823
+ <tr>
3824
+ <td>
3825
+ <pre class="lines">
3826
+
3827
+
3828
+ 428
3829
+ 429
3830
+ 430</pre>
3831
+ </td>
3832
+ <td>
3833
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 428</span>
3834
+
3835
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_in_game? fid id'>in_game?</span>
3836
+ <span class='rubyid_@online_state ivar id'>@online_state</span> <span class='eq op'>==</span> <span class='string val'>'in-game'</span>
3837
+ <span class='rubyid_end end kw'>end</span>
3838
+ </pre>
3839
+ </td>
3840
+ </tr>
3841
+ </table>
3842
+ </div>
3843
+
3844
+ <div class="method_details ">
3845
+ <p class="signature " id="limited?-instance_method">
3846
+
3847
+ - (<tt>Boolean</tt>) <strong>limited?</strong>
3848
+
3849
+
3850
+
3851
+ </p><div class="docstring">
3852
+ <div class="discussion">
3853
+ <p>Returns whether this Steam account is limited</p>
3854
+
3855
+
3856
+ </div>
3857
+ </div>
3858
+ <div class="tags">
3859
+
3860
+ <h3>Returns:</h3>
3861
+ <ul class="return">
3862
+
3863
+ <li>
3864
+
3865
+
3866
+ <span class='type'>(<tt>Boolean</tt>)</span>
3867
+
3868
+
3869
+
3870
+ &mdash;
3871
+ <div class='inline'><p><code>true</code> if this account is limited</p>
3872
+ </div>
3873
+
3874
+ </li>
3875
+
3876
+ </ul>
3877
+
3878
+ </div><table class="source_code">
3879
+ <tr>
3880
+ <td>
3881
+ <pre class="lines">
3882
+
3883
+
3884
+ 436
3885
+ 437
3886
+ 438</pre>
3887
+ </td>
3888
+ <td>
3889
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 436</span>
3890
+
3891
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_limited? fid id'>limited?</span>
3892
+ <span class='rubyid_@limited ivar id'>@limited</span>
3893
+ <span class='rubyid_end end kw'>end</span>
3894
+ </pre>
3895
+ </td>
3896
+ </tr>
3897
+ </table>
3898
+ </div>
3899
+
3900
+ <div class="method_details ">
3901
+ <p class="signature " id="medium_avatar_url-instance_method">
3902
+
3903
+ - (<tt>String</tt>) <strong>medium_avatar_url</strong>
3904
+
3905
+
3906
+
3907
+ </p><div class="docstring">
3908
+ <div class="discussion">
3909
+ <p>Returns the URL of the medium-sized version of this user&#39;s avatar</p>
3910
+
3911
+
3912
+ </div>
3913
+ </div>
3914
+ <div class="tags">
3915
+
3916
+ <h3>Returns:</h3>
3917
+ <ul class="return">
3918
+
3919
+ <li>
3920
+
3921
+
3922
+ <span class='type'>(<tt>String</tt>)</span>
3923
+
3924
+
3925
+
3926
+ &mdash;
3927
+ <div class='inline'><p>The URL of the medium-sized avatar</p>
3928
+ </div>
3929
+
3930
+ </li>
3931
+
3932
+ </ul>
3933
+
3934
+ </div><table class="source_code">
3935
+ <tr>
3936
+ <td>
3937
+ <pre class="lines">
3938
+
3939
+
3940
+ 443
3941
+ 444
3942
+ 445</pre>
3943
+ </td>
3944
+ <td>
3945
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 443</span>
3946
+
3947
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_medium_avatar_url identifier id'>medium_avatar_url</span>
3948
+ <span class='dstring node'>&quot;#{@image_url}_medium.jpg&quot;</span>
3949
+ <span class='rubyid_end end kw'>end</span>
3950
+ </pre>
3951
+ </td>
3952
+ </tr>
3953
+ </table>
3954
+ </div>
3955
+
3956
+ <div class="method_details ">
3957
+ <p class="signature " id="online?-instance_method">
3958
+
3959
+ - (<tt>Boolean</tt>) <strong>online?</strong>
3960
+
3961
+
3962
+
3963
+ <span class="aliases">Also known as:
3964
+ <span class="names"><span id='is_online?-instance_method'>is_online?</span></span>
3965
+ </span>
3966
+
3967
+ </p><div class="docstring">
3968
+ <div class="discussion">
3969
+ <p>Returns whether the owner of this SteamID is currently logged into Steam</p>
3970
+
3971
+
3972
+ </div>
3973
+ </div>
3974
+ <div class="tags">
3975
+
3976
+ <h3>Returns:</h3>
3977
+ <ul class="return">
3978
+
3979
+ <li>
3980
+
3981
+
3982
+ <span class='type'>(<tt>Boolean</tt>)</span>
3983
+
3984
+
3985
+
3986
+ &mdash;
3987
+ <div class='inline'><p><code>true</code> if the user is online</p>
3988
+ </div>
3989
+
3990
+ </li>
3991
+
3992
+ </ul>
3993
+
3994
+ </div><table class="source_code">
3995
+ <tr>
3996
+ <td>
3997
+ <pre class="lines">
3998
+
3999
+
4000
+ 450
4001
+ 451
4002
+ 452</pre>
4003
+ </td>
4004
+ <td>
4005
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 450</span>
4006
+
4007
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_online? fid id'>online?</span>
4008
+ <span class='rubyid_@online_state ivar id'>@online_state</span> <span class='neq op'>!=</span> <span class='string val'>'offline'</span>
4009
+ <span class='rubyid_end end kw'>end</span>
4010
+ </pre>
4011
+ </td>
4012
+ </tr>
4013
+ </table>
4014
+ </div>
4015
+
4016
+ <div class="method_details ">
4017
+ <p class="signature " id="public?-instance_method">
4018
+
4019
+ - (<tt>Boolean</tt>) <strong>public?</strong>
4020
+
4021
+
4022
+
4023
+ </p><div class="docstring">
4024
+ <div class="discussion">
4025
+ <p>Returns whether this Steam ID is publicly accessible</p>
4026
+
4027
+
4028
+ </div>
4029
+ </div>
4030
+ <div class="tags">
4031
+
4032
+ <h3>Returns:</h3>
4033
+ <ul class="return">
4034
+
4035
+ <li>
4036
+
4037
+
4038
+ <span class='type'>(<tt>Boolean</tt>)</span>
4039
+
4040
+
4041
+
4042
+ &mdash;
4043
+ <div class='inline'><p><code>true</code> if this Steam ID is public</p>
4044
+ </div>
4045
+
4046
+ </li>
4047
+
4048
+ </ul>
4049
+
4050
+ </div><table class="source_code">
4051
+ <tr>
4052
+ <td>
4053
+ <pre class="lines">
4054
+
4055
+
4056
+ 458
4057
+ 459
4058
+ 460</pre>
4059
+ </td>
4060
+ <td>
4061
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 458</span>
4062
+
4063
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_public? fid id'>public?</span>
4064
+ <span class='rubyid_@privacy_state ivar id'>@privacy_state</span> <span class='eq op'>==</span> <span class='string val'>'public'</span>
4065
+ <span class='rubyid_end end kw'>end</span>
4066
+ </pre>
4067
+ </td>
4068
+ </tr>
4069
+ </table>
4070
+ </div>
4071
+
4072
+ <div class="method_details ">
4073
+ <p class="signature " id="recent_playtime-instance_method">
4074
+
4075
+ - (<tt>Fixnum</tt>) <strong>recent_playtime</strong>(id)
4076
+
4077
+
4078
+
4079
+ </p><div class="docstring">
4080
+ <div class="discussion">
4081
+ <p>Returns the time in minutes this user has played this game in the last
4082
+ two weeks</p>
4083
+
4084
+
4085
+ </div>
4086
+ </div>
4087
+ <div class="tags">
4088
+ <h3>Parameters:</h3>
4089
+ <ul class="param">
4090
+
4091
+ <li>
4092
+
4093
+ <span class='name'>id</span>
4094
+
4095
+
4096
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
4097
+
4098
+
4099
+
4100
+ &mdash;
4101
+ <div class='inline'><p>The full or short name or the application ID
4102
+ of the game</p>
4103
+ </div>
4104
+
4105
+ </li>
4106
+
4107
+ </ul>
4108
+
4109
+ <h3>Returns:</h3>
4110
+ <ul class="return">
4111
+
4112
+ <li>
4113
+
4114
+
4115
+ <span class='type'>(<tt>Fixnum</tt>)</span>
4116
+
4117
+
4118
+
4119
+ &mdash;
4120
+ <div class='inline'><p>The number of minutes this user played the given game in
4121
+ the last two weeks</p>
4122
+ </div>
4123
+
4124
+ </li>
4125
+
4126
+ </ul>
4127
+
4128
+ </div><table class="source_code">
4129
+ <tr>
4130
+ <td>
4131
+ <pre class="lines">
4132
+
4133
+
4134
+ 469
4135
+ 470
4136
+ 471
4137
+ 472</pre>
4138
+ </td>
4139
+ <td>
4140
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 469</span>
4141
+
4142
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_recent_playtime identifier id'>recent_playtime</span><span class='lparen token'>(</span><span class='rubyid_id identifier id'>id</span><span class='rparen token'>)</span>
4143
+ <span class='rubyid_game identifier id'>game</span> <span class='assign token'>=</span> <span class='rubyid_find_game identifier id'>find_game</span> <span class='rubyid_id identifier id'>id</span>
4144
+ <span class='rubyid_@playtimes ivar id'>@playtimes</span><span class='lbrack token'>[</span><span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
4145
+ <span class='rubyid_end end kw'>end</span>
4146
+ </pre>
4147
+ </td>
4148
+ </tr>
4149
+ </table>
4150
+ </div>
4151
+
4152
+ <div class="method_details ">
4153
+ <p class="signature " id="total_playtime-instance_method">
4154
+
4155
+ - (<tt>Fixnum</tt>) <strong>total_playtime</strong>(id)
4156
+
4157
+
4158
+
4159
+ </p><div class="docstring">
4160
+ <div class="discussion">
4161
+ <p>Returns the total time in minutes this user has played this game</p>
4162
+
4163
+
4164
+ </div>
4165
+ </div>
4166
+ <div class="tags">
4167
+ <h3>Parameters:</h3>
4168
+ <ul class="param">
4169
+
4170
+ <li>
4171
+
4172
+ <span class='name'>id</span>
4173
+
4174
+
4175
+ <span class='type'>(<tt>Fixnum</tt>, <tt>String</tt>)</span>
4176
+
4177
+
4178
+
4179
+ &mdash;
4180
+ <div class='inline'><p>The full or short name or the application ID
4181
+ of the game</p>
4182
+ </div>
4183
+
4184
+ </li>
4185
+
4186
+ </ul>
4187
+
4188
+ <h3>Returns:</h3>
4189
+ <ul class="return">
4190
+
4191
+ <li>
4192
+
4193
+
4194
+ <span class='type'>(<tt>Fixnum</tt>)</span>
4195
+
4196
+
4197
+
4198
+ &mdash;
4199
+ <div class='inline'><p>The total number of minutes this user played the given
4200
+ game</p>
4201
+ </div>
4202
+
4203
+ </li>
4204
+
4205
+ </ul>
4206
+
4207
+ </div><table class="source_code">
4208
+ <tr>
4209
+ <td>
4210
+ <pre class="lines">
4211
+
4212
+
4213
+ 480
4214
+ 481
4215
+ 482
4216
+ 483</pre>
4217
+ </td>
4218
+ <td>
4219
+ <pre class="code"><span class="info file"># File 'lib/steam/community/steam_id.rb', line 480</span>
4220
+
4221
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_total_playtime identifier id'>total_playtime</span><span class='lparen token'>(</span><span class='rubyid_id identifier id'>id</span><span class='rparen token'>)</span>
4222
+ <span class='rubyid_game identifier id'>game</span> <span class='assign token'>=</span> <span class='rubyid_find_game identifier id'>find_game</span> <span class='rubyid_id identifier id'>id</span>
4223
+ <span class='rubyid_@playtimes ivar id'>@playtimes</span><span class='lbrack token'>[</span><span class='rubyid_game identifier id'>game</span><span class='dot token'>.</span><span class='rubyid_app_id identifier id'>app_id</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span>
4224
+ <span class='rubyid_end end kw'>end</span>
4225
+ </pre>
4226
+ </td>
4227
+ </tr>
4228
+ </table>
4229
+ </div>
4230
+
4231
+ </div>
4232
+
4233
+ </div>
4234
+
4235
+ <div id="footer">
4236
+ Generated on Mon Apr 30 07:02:59 2012 by
4237
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4238
+ 0.7.5 (ruby-1.8.7).
4239
+ </div>
4240
+
4241
+ </body>
4242
+ </html>