Class: Lazylead::Attachment
- Inherits:
-
Requirement
- Object
- Requirement
- Lazylead::Attachment
- Defined in:
- lib/lazylead/task/accuracy/attachment.rb
Overview
Check that ticket has an attachment.
Instance Attribute Summary
Attributes inherited from Requirement
Instance Method Summary collapse
-
#initialize(desc, score, field) ⇒ Attachment
constructor
A new instance of Attachment.
-
#matching(attachment) ⇒ Object
Check a single attachment from ticket.
- #passed(issue) ⇒ Object
Methods inherited from Requirement
Constructor Details
#initialize(desc, score, field) ⇒ Attachment
Returns a new instance of Attachment.
30 31 32 |
# File 'lib/lazylead/task/accuracy/attachment.rb', line 30 def initialize(desc, score, field) super(desc, score, field) end |
Instance Method Details
#matching(attachment) ⇒ Object
Check a single attachment from ticket. Potential extension point for custom verification logic.
40 41 42 |
# File 'lib/lazylead/task/accuracy/attachment.rb', line 40 def matching() !.nil? end |
#passed(issue) ⇒ Object
34 35 36 |
# File 'lib/lazylead/task/accuracy/attachment.rb', line 34 def passed(issue) issue..any?(&method(:matching)) end |