class Steam::Id::Steam2Printer

Prints a given Steam::Id in the Steam2 format

Attributes

base[R]

Public Class Methods

new(base) click to toggle source

Creates a new instance of the Steam2Printer

# File lib/steam/id/steam2_printer.rb, line 8
def initialize(base)
  @base = base
end

Public Instance Methods

print() click to toggle source

Prints the String

@return [String]

Private Instance Methods

account_id() click to toggle source

@api private

# File lib/steam/id/steam2_printer.rb, line 34
def account_id
  base.account_id
end
universe() click to toggle source

@api private

# File lib/steam/id/steam2_printer.rb, line 29
def universe
  base.universe
end
universe_digit() click to toggle source

Gives the real digit represented by the universe

@return [Integer] the universe digit

# File lib/steam/id/steam2_printer.rb, line 24
def universe_digit
  universe <= EUniverse::PUBLIC ? 0 : universe
end