Class: ICU::RatedPlayer::FrgnRating

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

Overview

:nodoc:

Instance Attribute Summary collapse

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, rating) ⇒ FrgnRating

Returns a new instance of FrgnRating.



322
323
324
325
326
# File 'lib/icu_ratings/player.rb', line 322

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

Instance Attribute Details

#ratingObject (readonly)

Returns the value of attribute rating.



320
321
322
# File 'lib/icu_ratings/player.rb', line 320

def rating
  @rating
end

Instance Method Details

#new_rating(type = nil) ⇒ Object



328
329
330
# File 'lib/icu_ratings/player.rb', line 328

def new_rating(type=nil)
  rating
end