Class: GithubStats::Reports::ClosedByWeekReport

Inherits:
Object
  • Object
show all
Includes:
Report
Defined in:
lib/github_stats/closed_by_week_report.rb

Overview

Provides week-by-week breakdown of issues closed, grouped by week with a 3 week moving average.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Report

#initialize

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/github_stats/closed_by_week_report.rb', line 8

def options
  @options
end

#search_stringObject

Returns the value of attribute search_string.



8
9
10
# File 'lib/github_stats/closed_by_week_report.rb', line 8

def search_string
  @search_string
end

Instance Method Details

#resultsObject



11
12
13
14
15
# File 'lib/github_stats/closed_by_week_report.rb', line 11

def results
  results = with_moving_average(:velocity,
                                by_week_closed(with_qty(issues)))
  Reports::Results.new(results, keys: [:week_closed, :qty, :velocity])
end