Class: AbstractImporter::Reporters::DotReporter

Inherits:
DebugReporter show all
Defined in:
lib/abstract_importer/reporters/dot_reporter.rb

Instance Attribute Summary

Attributes inherited from DebugReporter

#invalid_params

Attributes inherited from BaseReporter

#io

Instance Method Summary collapse

Methods inherited from DebugReporter

#count_error, #count_notice, #file, #finish_all, #finish_collection, #finish_setup, #initialize, #start_all, #start_collection, #stat, #status

Methods inherited from BaseReporter

#count_error, #count_notice, #finish_all, #finish_collection, #finish_setup, #finish_teardown, #initialize, #start_all, #start_collection

Constructor Details

This class inherits a constructor from AbstractImporter::Reporters::DebugReporter

Instance Method Details

#batch_inserted(size) ⇒ Object



21
22
23
24
# File 'lib/abstract_importer/reporters/dot_reporter.rb', line 21

def batch_inserted(size)
  io.print "." * size
  super
end

#record_created(record) ⇒ Object



6
7
8
9
# File 'lib/abstract_importer/reporters/dot_reporter.rb', line 6

def record_created(record)
  io.print "."
  super
end

#record_failed(record, hash) ⇒ Object



11
12
13
14
# File 'lib/abstract_importer/reporters/dot_reporter.rb', line 11

def record_failed(record, hash)
  io.print "×"
  super
end

#record_skipped(hash) ⇒ Object



16
17
18
19
# File 'lib/abstract_importer/reporters/dot_reporter.rb', line 16

def record_skipped(hash)
  io.print "_"
  super
end