class Author
Attributes
commit_count[RW]
deletion[RW]
insertion[RW]
name[RW]
Public Class Methods
new(name, commit_count)
click to toggle source
# File lib/ginbeer/author.rb, line 4 def initialize(name, commit_count) @name = name @commit_count = commit_count @insertion = 0 @deletion = 0 end
Public Instance Methods
result()
click to toggle source
# File lib/ginbeer/author.rb, line 15 def result return "#{self.name}: #{self.score}(commits: #{self.commit_count}, insertion: #{self.insertion}, deletion: #{self.deletion})" end
score()
click to toggle source
# File lib/ginbeer/author.rb, line 11 def score return @commit_count + @insertion + @deletion end