Class: GithubStats::ClosedByWeekReport

Inherits:
Object
  • Object
show all
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.

Defined Under Namespace

Classes: Results

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(search_string, options) ⇒ ClosedByWeekReport

Returns a new instance of ClosedByWeekReport.



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

def initialize(search_string, options)
  self.search_string = search_string
  self.options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'lib/github_stats/closed_by_week_report.rb', line 6

def options
  @options
end

#search_stringObject

Returns the value of attribute search_string.



6
7
8
# File 'lib/github_stats/closed_by_week_report.rb', line 6

def search_string
  @search_string
end

Instance Method Details

#resultsObject



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

def results
  results = with_velocity(with_week_closed(with_qty(issues)))
  Results.new(results)
end