Steam::ID
Inherits Struct < Value < Object
A Steam ID is an encoded 64 bit integer that contains various metadata about a Steam account.
A given ID does not uniquely identify an account,
as encoded IDs may be missing certain pieces of metadata if it was decoded
from certain formats (see Steam::ID::Format for more info).
Constants
VERSION = "0.2.0"
Constructors
new(string : String, format : Format)
Parses a string as the given Format. Raises Error if parsing fails.
new(string : String)
Attempts to parse the given string as an ID of any of Format. Raises
Error if no format parses well.
Instance methods
lowest_bit
The lowest bit value of this ID. Used for encoding an ID into a
string of a given Format
to_s(io : IO, format : Format = Format::Community64)
Serializes this ID as the given Format, writing to the given IO
to_u64
Source