Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/player.rb
Direct Known Subclasses
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(token) ⇒ Player
Returns a new instance of Player.
7 8 9 10 |
# File 'lib/player.rb', line 7 def initialize(token) @token = token @@all << self end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/player.rb', line 3 def token @token end |