Class: Lazylead::AffectedBuild

Inherits:
Requirement show all
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

#desc, #field, #score

Instance Method Summary collapse

Methods inherited from Requirement

#blank?, #non_blank?

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.

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