Sha256: ccdaf794a83e9d90550a06283123fde975cafb03b02b1e80096560384d14a6b5

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 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

1 entries across 1 versions & 1 rubygems

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