Class: ICU::RatedPlayer::NoneRating

Inherits:
ICU::RatedPlayer show all
Defined in:
lib/icu_ratings/player.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from ICU::RatedPlayer

#desc, #num, #performance, #results, #type

Instance Method Summary collapse

Methods inherited from ICU::RatedPlayer

#==, #add_result, #average_performance, check_games, check_kfactor, check_num, check_rating, #estimate_performance, #expected_score, factory, kfactor, #rate!, #reset, #score, #update_performance

Constructor Details

#initialize(num, desc) ⇒ NoneRating

Returns a new instance of NoneRating.



309
310
311
312
# File 'lib/icu_ratings/player.rb', line 309

def initialize(num, desc)
  @type = :unrated
  super(num, desc)
end

Instance Method Details

#new_rating(type = nil) ⇒ Object



314
315
316
# File 'lib/icu_ratings/player.rb', line 314

def new_rating(type=nil)
  performance
end