Class: Beefdump::Game::Player

Inherits:
Object
  • Object
show all
Defined in:
lib/beefdump/game/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/beefdump/game/player.rb', line 4

def name
  @name
end

#positionObject (readonly)

Returns the value of attribute position.



4
5
6
# File 'lib/beefdump/game/player.rb', line 4

def position
  @position
end