summaryrefslogtreecommitdiff
path: root/lib/scoring/marginal_peer.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-28 15:03:50 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-28 15:03:50 -0400
commita528cedd36c77487496147b5880205799dbcb242 (patch)
tree5f70513055373d3e10b90aa5dffb65e398a2759f /lib/scoring/marginal_peer.rb
parentb2bd85de2d7ca642dcef62aa0ef1eee078be7938 (diff)
I fixed it. added self and fixed variable names.
Diffstat (limited to 'lib/scoring/marginal_peer.rb')
-rw-r--r--lib/scoring/marginal_peer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scoring/marginal_peer.rb b/lib/scoring/marginal_peer.rb
index 13e1796..aa05f5e 100644
--- a/lib/scoring/marginal_peer.rb
+++ b/lib/scoring/marginal_peer.rb
@@ -1,10 +1,10 @@
module Scoring
module MarginalPeer
- def stats_needed
+ def self.stats_needed
return [:rating]
end
- def score(match, interface)
+ def self.score(match, interface)
scores = {}
match.players.each do |player|
scores[player.user_name] = interface.get_statistic(match, player, :rating)