steam-condenser 1.3.8.1 → 1.3.9

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