Class: Steam::Id::Steam3Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/steam/id/steam3_printer.rb

Overview

Prints a Steam::Id in the Steam 3 format

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base) ⇒ Steam3Printer

Creates a new Steam3Printer object



8
9
10
# File 'lib/steam/id/steam3_printer.rb', line 8

def initialize(base)
  @base = base
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



5
6
7
# File 'lib/steam/id/steam3_printer.rb', line 5

def base
  @base
end

Instance Method Details

Note:

Only Individual account types are supported

Prints the Steam::Id in Steam3 format.



15
16
17
# File 'lib/steam/id/steam3_printer.rb', line 15

def print
  "[U:#{instance}:#{}]"
end