Class: Beefdump::Game::Player
- Inherits:
-
Object
- Object
- Beefdump::Game::Player
- Defined in:
- lib/beefdump/game/player.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(name, position) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(name, position) ⇒ Player
Returns a new instance of Player.
6 7 8 9 |
# File 'lib/beefdump/game/player.rb', line 6 def initialize(name, position) @name = name @position = position end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/beefdump/game/player.rb', line 4 def name @name end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
4 5 6 |
# File 'lib/beefdump/game/player.rb', line 4 def position @position end |