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