Class: Metior::Report::Default::TopCommitters

Inherits:
View
  • Object
show all
Defined in:
reports/default/views/top_committers.rb

Overview

Author:

  • Sebastian Staudt

Instance Method Summary collapse

Methods inherited from View

inherited, #initialize, #method_missing, #render, #repository, requires, #respond_to?, #vcs_name

Methods included from ViewHelper

#count, #even_odd, #reset_count

Constructor Details

This class inherits a constructor from Metior::Report::View

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Metior::Report::View

Instance Method Details

#commit_countObject



15
16
17
# File 'reports/default/views/top_committers.rb', line 15

def commit_count
  self[:authored_commits].size
end

#committersObject



11
12
13
# File 'reports/default/views/top_committers.rb', line 11

def committers
  repository.authors(@report.range).top(5).values
end