Class: Steam::EMsgUtil
- Inherits:
-
Object
- Object
- Steam::EMsgUtil
- Defined in:
- lib/steam/emsg_util.rb
Overview
Utility to provide EMsg convenience. Allows looking up EMsg name by the EMsg integer value.
Instance Method Summary collapse
-
#initialize(emsg) ⇒ EMsgUtil
constructor
Instantiate the object.
-
#name ⇒ String
Return the name of the EMsg.
Constructor Details
#initialize(emsg) ⇒ EMsgUtil
Instantiate the object
12 13 14 |
# File 'lib/steam/emsg_util.rb', line 12 def initialize(emsg) @emsg = emsg end |
Instance Method Details
#name ⇒ String
Return the name of the EMsg
19 20 21 |
# File 'lib/steam/emsg_util.rb', line 19 def name emsg.to_s end |