class AbstractImporter::Summary

Public Class Methods

new(a=0, b=0, c=0, d=0, e=0, f=0, g=0) click to toggle source
Calls superclass method
# File lib/abstract_importer/summary.rb, line 4
def initialize(a=0, b=0, c=0, d=0, e=0, f=0, g=0)
  super(a,b,c,d,e,f,g)
end

Public Instance Methods

+(other) click to toggle source
# File lib/abstract_importer/summary.rb, line 13
def +(other)
  Summary.new(
    total + other.total,
    redundant + other.redundant,
    created + other.created,
    already_imported + other.already_imported,
    invalid + other.invalid,
    ms + other.ms,
    skipped + other.skipped)
end
average_ms() click to toggle source
# File lib/abstract_importer/summary.rb, line 8
def average_ms
  return nil if total == 0
  ms / total
end