Class: Indexter::Formatters::PassFail
- Inherits:
-
Object
- Object
- Indexter::Formatters::PassFail
- Defined in:
- lib/indexter/formatters/pass_fail.rb
Instance Method Summary collapse
-
#format(payload) ⇒ Object
Returns like a Unix process:.
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 |