Module: GameClass

Included in:
DoDSClass, TF2Class
Defined in:
lib/steam/community/game_class.rb

Overview

A module implementing basic functionality for classes representing player classes

Author:

  • Sebastian Staudt

Instance Attribute Summary collapse

Instance Attribute Details

#nameString (readonly)

Returns the name of this class

Returns:

  • (String)

    The name of this class



15
16
17
# File 'lib/steam/community/game_class.rb', line 15

def name
  @name
end

#play_timeFixnum (readonly)

Returns the time in minutes the player has played with this class

Returns:

  • (Fixnum)

    The time this class has been played



20
21
22
# File 'lib/steam/community/game_class.rb', line 20

def play_time
  @play_time
end