Class: ICU::RatedPlayer::FrgnRating
- Inherits:
-
ICU::RatedPlayer
- Object
- ICU::RatedPlayer
- ICU::RatedPlayer::FrgnRating
- Defined in:
- lib/icu_ratings/player.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
Attributes inherited from ICU::RatedPlayer
#desc, #num, #performance, #results, #type
Instance Method Summary collapse
-
#initialize(num, desc, rating) ⇒ FrgnRating
constructor
A new instance of FrgnRating.
- #new_rating(type = nil) ⇒ Object
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, ) @type = :foreign @rating = super(num, desc) end |
Instance Attribute Details
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
320 321 322 |
# File 'lib/icu_ratings/player.rb', line 320 def @rating end |
Instance Method Details
#new_rating(type = nil) ⇒ Object
328 329 330 |
# File 'lib/icu_ratings/player.rb', line 328 def (type=nil) end |