class Stat

Attributes

failed[RW]
files_current[RW]
files_total[RW]
flush_counter[RW]
success[RW]
total[RW]

Public Class Methods

new() click to toggle source
# File lib/rforward/stat.rb, line 5
def initialize
  @success, @failed, @total, @files_total, @files_current, @flush_counter = 0, 0, 0, 0, 0, 0
end

Public Instance Methods

to_s() click to toggle source
# File lib/rforward/stat.rb, line 9
def to_s
  text = []
  text << "[STAT]"
  text << "[total: #{total}] [success: #{success}] [failed #{failed}]"
  text << "[file current #{files_current}] [files total #{files_total}]"
  text << "[STAT]"
  text.join "\n"
end