Class: ReportItems
- Inherits:
-
Object
- Object
- ReportItems
- Defined in:
- lib/newsman/report.rb
Overview
Report items inner class.
Instance Method Summary collapse
-
#empty? ⇒ Boolean
Returns true if there are no pull requests or issues, false otherwise.
-
#initialize(prs, issues) ⇒ ReportItems
constructor
A new instance of ReportItems.
- #to_s ⇒ Object
Constructor Details
#initialize(prs, issues) ⇒ ReportItems
Returns a new instance of ReportItems.
68 69 70 71 |
# File 'lib/newsman/report.rb', line 68 def initialize(prs, issues) @prs = prs || [] @issues = issues || [] end |
Instance Method Details
#empty? ⇒ Boolean
Returns true if there are no pull requests or issues, false otherwise
74 75 76 |
# File 'lib/newsman/report.rb', line 74 def empty? @prs.empty? && @issues.empty? end |