class Ruby::Reports::Services::EventsHandler

Constants

PROGRESS_STEP

Public Instance Methods

error() click to toggle source
# File lib/ruby/reports/services/events_handler.rb, line 17
def error
  error_callback ? error_callback.call($ERROR_INFO) : fail
end
progress(progress, total, force = false) click to toggle source
# File lib/ruby/reports/services/events_handler.rb, line 11
def progress(progress, total, force = false)
  if progress_callback && (force || progress % PROGRESS_STEP == 0)
    progress_callback.call progress, total
  end
end