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
-
#matches?(attachment) ⇒ Boolean
Check a single attachment from ticket.
- #passed(issue) ⇒ Object
Methods inherited from Requirement
#blank?, #initialize, #non_blank?
Constructor Details
This class inherits a constructor from Lazylead::Requirement
Instance Method Details
#matches?(attachment) ⇒ Boolean
Check a single attachment from ticket. Potential extension point for custom verification logic.
36 37 38 |
# File 'lib/lazylead/task/accuracy/attachment.rb', line 36 def matches?() !.nil? end |
#passed(issue) ⇒ Object
30 31 32 |
# File 'lib/lazylead/task/accuracy/attachment.rb', line 30 def passed(issue) issue..any? { |a| matches?(a) } end |