Class: GithubDailyUpdate::Report
- Inherits:
-
Object
- Object
- GithubDailyUpdate::Report
- Defined in:
- lib/github_daily_update/report.rb
Overview
The main report generation class
Instance Attribute Summary collapse
-
#reporters ⇒ Object
Returns the value of attribute reporters.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(options = {}) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(options = {}) ⇒ Report
Returns a new instance of Report.
5 6 7 8 9 10 11 |
# File 'lib/github_daily_update/report.rb', line 5 def initialize( = {}) client = ::Octokit::Client.new @reporters = [ GithubDailyUpdate::Reporter::Merged.new(client, ), GithubDailyUpdate::Reporter::OpenPulls.new(client, ) ] end |
Instance Attribute Details
#reporters ⇒ Object
Returns the value of attribute reporters.
3 4 5 |
# File 'lib/github_daily_update/report.rb', line 3 def reporters @reporters end |
Instance Method Details
#generate ⇒ Object
13 14 15 |
# File 'lib/github_daily_update/report.rb', line 13 def generate @reporters.map { |r| r.generate } end |