Class: GithubStats::Reports::CreatedByWeekReport

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

Overview

Provides week-by-week breakdown of issues created, 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/created_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/created_by_week_report.rb', line 8

def search_string
  @search_string
end

Instance Method Details

#resultsObject



12
13
14
15
16
# File 'lib/github_stats/created_by_week_report.rb', line 12

def results
  results = with_moving_average(:add_rate,
                                by_week_created(with_qty(issues)))
  Reports::Results.new(results, keys: [:week_created, :qty, :add_rate])
end