Class: Pinspec::Batch::Report

Inherits:
Data
  • Object
show all
Defined in:
lib/pinspec/batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#outcomesObject (readonly)

Returns the value of attribute outcomes

Returns:

  • (Object)

    the current value of outcomes



17
18
19
# File 'lib/pinspec/batch.rb', line 17

def outcomes
  @outcomes
end

Instance Method Details

#anything_pinned?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/pinspec/batch.rb', line 30

def anything_pinned?
  !pinned.empty?
end

#failedObject



26
27
28
# File 'lib/pinspec/batch.rb', line 26

def failed
  outcomes.reject { |outcome| outcome.pinned? || outcome.refused? }
end

#pinnedObject



18
19
20
# File 'lib/pinspec/batch.rb', line 18

def pinned
  outcomes.select(&:pinned?)
end

#refusedObject



22
23
24
# File 'lib/pinspec/batch.rb', line 22

def refused
  outcomes.select(&:refused?)
end