Sha256: 9d4b441973f794628ecd011bd6cb12dc110bedb96f0e67d50bd42a631a41ea87

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

require_relative 'player'

# @author Ralf-Tobias Diekert
# winning condition
class Condition
  # @!attribute [r] winner
  # @return [Player] winning player
  attr_reader :winner
  # @!attribute [r] reason
  # @return [String] winning reason
  attr_reader :reason
  
  # Initializes the winning Condition with a player and a reason
  # @param winer [Player] winning player
  # @param reason [String] winning reason
  def initialize(winner, reason)
    @winner = winner
    @reason = reason
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
software_challenge_client-0.1.0 lib/software_challenge_client/condition.rb