Class: Condition
- Inherits:
-
Object
- Object
- Condition
- Defined in:
- lib/software_challenge_client/condition.rb
Overview
Represents the winning condition received from the server when the game ended.
Instance Attribute Summary collapse
-
#winner ⇒ Player
readonly
Winning player.
Instance Method Summary collapse
-
#initialize(winner) ⇒ Condition
constructor
Initializes the winning Condition with a player.
Constructor Details
#initialize(winner) ⇒ Condition
Initializes the winning Condition with a player
12 13 14 |
# File 'lib/software_challenge_client/condition.rb', line 12 def initialize(winner) @winner = winner end |
Instance Attribute Details
#winner ⇒ Player (readonly)
Returns winning player.
8 9 10 |
# File 'lib/software_challenge_client/condition.rb', line 8 def winner @winner end |