Class: Steam::Id::Steam3Printer
- Inherits:
-
Object
- Object
- Steam::Id::Steam3Printer
- Defined in:
- lib/steam/id/steam3_printer.rb
Overview
Prints a Steam::Id in the Steam 3 format
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
Instance Method Summary collapse
-
#initialize(base) ⇒ Steam3Printer
constructor
Creates a new Steam3Printer object.
-
#print ⇒ Object
Prints the Steam::Id in Steam3 format.
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
#base ⇒ Object (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
#print ⇒ Object
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}:#{account_id}]" end |