Class: Lazylead::AffectedBuild
- Inherits:
-
Requirement
- Object
- Requirement
- Lazylead::AffectedBuild
- Defined in:
- lib/lazylead/task/accuracy/affected_build.rb
Overview
A requirement that Jira field “Affects Version/s” provided by the reporter.
Instance Attribute Summary
Attributes inherited from Requirement
Instance Method Summary collapse
-
#initialize(score = 0.5) ⇒ AffectedBuild
constructor
A new instance of AffectedBuild.
-
#passed(issue) ⇒ Object
True if an issue has non-empty “Affects Version/s” field.
Methods inherited from Requirement
Constructor Details
#initialize(score = 0.5) ⇒ AffectedBuild
Returns a new instance of AffectedBuild.
30 31 32 |
# File 'lib/lazylead/task/accuracy/affected_build.rb', line 30 def initialize(score = 0.5) super "Affected build", score, "Affects Version/s" end |
Instance Method Details
#passed(issue) ⇒ Object
Returns true if an issue has non-empty “Affects Version/s” field.
35 36 37 |
# File 'lib/lazylead/task/accuracy/affected_build.rb', line 35 def passed(issue) non_blank? issue, "versions" end |