Class: GazetteerImport

Inherits:
ApplicationRecord show all
Includes:
Housekeeping
Defined in:
app/models/gazetteer_import.rb

Overview

A GazetteerImport tracks the progress of a gazetteer import job.

Instance Attribute Summary collapse

Method Summary

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry

Instance Attribute Details

#ended_atDateTime

When processing ended

Returns:

  • (DateTime)


33
34
35
# File 'app/models/gazetteer_import.rb', line 33

class GazetteerImport < ApplicationRecord
  include Housekeeping
end

#error_messagesString

A digest of all errors encountered during shapefile processing

Returns:

  • (String)


33
34
35
# File 'app/models/gazetteer_import.rb', line 33

class GazetteerImport < ApplicationRecord
  include Housekeeping
end

#num_recordsInteger

The total number of records to be imported by this job

Returns:

  • (Integer)


33
34
35
# File 'app/models/gazetteer_import.rb', line 33

class GazetteerImport < ApplicationRecord
  include Housekeeping
end

#num_records_importedInteger

The total number of records successfully imported by this job so far

Returns:

  • (Integer)


33
34
35
# File 'app/models/gazetteer_import.rb', line 33

class GazetteerImport < ApplicationRecord
  include Housekeeping
end

#project_idInteger

The project from which the import job is run (the job may import gazetteers into other projects as well - see project_names)

Returns:

  • (Integer)


33
34
35
# File 'app/models/gazetteer_import.rb', line 33

class GazetteerImport < ApplicationRecord
  include Housekeeping
end

#project_namesString

A string list of the names of the projects into which these gazetteers are being imported (for reporting purposes)

Returns:

  • (String)


33
34
35
# File 'app/models/gazetteer_import.rb', line 33

class GazetteerImport < ApplicationRecord
  include Housekeeping
end

#started_atDateTime

When processing began

Returns:

  • (DateTime)


33
34
35
# File 'app/models/gazetteer_import.rb', line 33

class GazetteerImport < ApplicationRecord
  include Housekeeping
end