Method: FtgStats#display
- Defined in:
- lib/ftg/ftg_stats.rb
#display ⇒ Object
92 93 94 95 96 97 98 99 100 101 |
# File 'lib/ftg/ftg_stats.rb', line 92 def display Hash[@stats].each do |day, by_day| puts "#{day}:" Hash[by_day].each do |branch, by_branch| by_idle = Hash[by_branch] idle_str = by_idle[true] ? "(and #{Utils.format_time(by_idle[true])} idle)" : '' puts " #{branch}: #{Utils.format_time(by_idle[false]) || '00:00:00'} #{idle_str}" end end end |