Class: Rbar::Bars::Failed

Inherits:
BaseBar
  • Object
show all
Defined in:
lib/rbar/bars/failed.rb

Instance Attribute Summary

Attributes inherited from BaseBar

#count, #parent_bar, #progress_bar, #total

Instance Method Summary collapse

Methods inherited from BaseBar

#increment, #initialize, #progress, #register_self

Constructor Details

This class inherits a constructor from Rbar::Bars::BaseBar

Instance Method Details

#colorObject



11
12
13
# File 'lib/rbar/bars/failed.rb', line 11

def color
  Pastel.new.red(marker)
end

#formatObject



15
16
17
# File 'lib/rbar/bars/failed.rb', line 15

def format
  "Failed  [:bar :percent] :current"
end