class Progressrus::Store::ProgressBar
Public Instance Methods
finish()
click to toggle source
# File lib/progressrus/store/progressbar.rb, line 10 def finish end
flush()
click to toggle source
# File lib/progressrus/store/progressbar.rb, line 13 def flush end
persist(progress, force: false, expires_at: false)
click to toggle source
# File lib/progressrus/store/progressbar.rb, line 6 def persist(progress, force: false, expires_at: false) bar(progress).progress = progress.count end
Private Instance Methods
bar(progress)
click to toggle source
# File lib/progressrus/store/progressbar.rb, line 18 def bar(progress) @bar ||= ::ProgressBar.create( title: progress.id, total: progress.total, format: "%t: %a %e %P% Processed: %c from %C", ) end