Sha256: 390a594f1a3431dd02ce314f94e48ee6326a0dfd0799449d41c9593a86d8b820
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
module Johki ID_MAGIC_NUMBER = 76561197960265728.freeze ID_ANONYMOUS = 4294967295.freeze class << self def account_id_to_steam_id(account_id) account_id + ID_MAGIC_NUMBER end def steam_id_to_account_id(steam_id) steam_id - ID_MAGIC_NUMBER end def anonymous?(account_id) account_id == ID_ANONYMOUS end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
johki-0.1.8 | lib/johki/id.rb |