Class: Pinspec::Batch::Report
- Inherits:
-
Data
- Object
- Data
- Pinspec::Batch::Report
- Defined in:
- lib/pinspec/batch.rb
Instance Attribute Summary collapse
-
#outcomes ⇒ Object
readonly
Returns the value of attribute outcomes.
Instance Method Summary collapse
Instance Attribute Details
#outcomes ⇒ Object (readonly)
Returns the value of attribute outcomes
17 18 19 |
# File 'lib/pinspec/batch.rb', line 17 def outcomes @outcomes end |
Instance Method Details
#anything_pinned? ⇒ Boolean
30 31 32 |
# File 'lib/pinspec/batch.rb', line 30 def anything_pinned? !pinned.empty? end |
#failed ⇒ Object
26 27 28 |
# File 'lib/pinspec/batch.rb', line 26 def failed outcomes.reject { |outcome| outcome.pinned? || outcome.refused? } end |
#pinned ⇒ Object
18 19 20 |
# File 'lib/pinspec/batch.rb', line 18 def pinned outcomes.select(&:pinned?) end |
#refused ⇒ Object
22 23 24 |
# File 'lib/pinspec/batch.rb', line 22 def refused outcomes.select(&:refused?) end |