class Steam::Id::Steam3Id

Represents a Valve Steam Id in the Steam3 format.

@note Only individual accounts are supported

Public Class Methods

new(universe, instance, account_id, account_type) click to toggle source

Instantiate a Steam3 id

Calls superclass method Steam::Id::Base::new
# File lib/steam/id/steam3_id.rb, line 20
def initialize(universe, instance, account_id, account_type)
  super()
  self.universe = universe
  self.instance = instance
  self.account_id = account_id
  self.account_type = account_type
end
parse(id) click to toggle source

Create a Steam3 id by parsing an input string

@param id [String] the input id

# File lib/steam/id/steam3_id.rb, line 11
def self.parse(id)
  parser = Steam3IdParser.new(id)
  parser.parse

  new(parser.universe, parser.instance,
      parser.account_id, parser.type)
end