Sha256: 144ea00579b29912bf4290be19b0fcb16e8298317c4e2ad63f48656286b6d830

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

# encoding: UTF-8
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

3 entries across 3 versions & 1 rubygems

Version Path
software_challenge_client-0.1.5 lib/software_challenge_client/condition.rb
software_challenge_client-0.1.4 lib/software_challenge_client/condition.rb
software_challenge_client-0.1.3 lib/software_challenge_client/condition.rb