Class: Indexter::Formatters::PassFail

Inherits:
Object
  • Object
show all
Defined in:
lib/indexter/formatters/pass_fail.rb

Instance Method Summary collapse

Instance Method Details

#format(payload) ⇒ Object

Returns like a Unix process:

  • 0 : successful, no missing indexes

  • n : failure, returns the number of missing indexes



10
11
12
# File 'lib/indexter/formatters/pass_fail.rb', line 10

def format(payload)
  payload.fetch(:missing, {}).flatten.count
end