Sha256: a09923d4534ea5b5f4e581236a51ef1072edc6c05b593351260a62ef029960ef

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 Bytes

Contents

module Topographer
  class Importer
    module Logger
      class FatalErrorEntry < Topographer::Importer::Logger::LogEntry
        attr_reader :message, :timestamp, :model_name

        def initialize(input_identifier, message)
          @timestamp = DateTime.now
          @input_identifier = input_identifier
          @model_name = 'N/A'
          @message = message
        end
        def source_identifier
          'import failure'
        end
        def details
          {}
        end
        def failure?
          true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
topographer-0.0.9 lib/topographer/importer/logger/fatal_error_entry.rb
topographer-0.0.8 lib/topographer/importer/logger/fatal_error_entry.rb