Module: SteamID

Defined in:
lib/steam_id.rb,
lib/steam-id/parser.rb,
lib/steam-id/steam_id.rb

Overview

Handle Steam IDs.

Defined Under Namespace

Classes: Parser, SteamID

Instance Method Summary collapse

Instance Method Details

#from_string(s, api_key: nil) ⇒ SteamID

Create SteamID object based on Steam ID.

Examples:

id1 = SteamID.from_string('STEAM_0:0:24110655')
id2 = SteamID.from_string('gabenewell', api_key: '...')
puts "Accounts are equal: #{ id1. == id2. }"

Parameters:

  • s (String)

    Steam ID which to use.

  • api_key (String) (defaults to: nil)

    Key for Steam web API. ‘nil` to disable API functionality.

Returns:

See Also:



17
18
19
# File 'lib/steam_id.rb', line 17

def from_string(s, api_key: nil)

end