Module: GithubStats::Reports

Defined in:
lib/github_stats/report.rb,
lib/github_stats/reports.rb,
lib/github_stats/cycle_time_report.rb,
lib/github_stats/closed_by_week_report.rb,
lib/github_stats/created_by_week_report.rb

Defined Under Namespace

Modules: Report Classes: ClosedByWeekReport, CreatedByWeekReport, CycleTimeReport, Results

Class Method Summary collapse

Class Method Details

.for(report_type) ⇒ Object



7
8
9
10
11
# File 'lib/github_stats/reports.rb', line 7

def self.for(report_type)
  { 'closed_by_week' => ClosedByWeekReport,
    'created_by_week' => CreatedByWeekReport,
    'cycle_time' => CycleTimeReport }.fetch(report_type)
end