Class: AlexCodebreaker::PlayersRating

Inherits:
Object
  • Object
show all
Defined in:
lib/alex_codebreaker/players_rating.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePlayersRating

Returns a new instance of PlayersRating.



5
6
7
8
# File 'lib/alex_codebreaker/players_rating.rb', line 5

def initialize
  @stats = []
  load_and_sort_stats
end

Instance Attribute Details

#statsObject

Returns the value of attribute stats.



3
4
5
# File 'lib/alex_codebreaker/players_rating.rb', line 3

def stats
  @stats
end