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