Class: Lazylead::Environment

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

#desc, #field, #score

Instance Method Summary collapse

Methods inherited from Requirement

#blank?, #non_blank?

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.

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