Sha256: f8b146f7b68568e53352ce69c1e1b554821a2cbc3f993175c27a5e12b40d8883

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

class Topographer::Importer::Logger::LogEntry
  attr_reader :input_identifier,
              :model_name

  def initialize(input_identifier, model_name, import_status)
    @input_identifier = input_identifier
    @model_name = model_name
    @import_status = import_status
  end

  def source_identifier
    @import_status.input_identifier
  end

  def message
    @import_status.message
  end

  def timestamp
    @import_status.timestamp
  end

  def details
    @import_status.errors
  end

  def success?
    !failure?
  end

  def failure?
    @import_status.errors?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
topographer-0.0.7 lib/topographer/importer/logger/log_entry.rb
topographer-0.0.6 lib/topographer/importer/logger/log_entry.rb
topographer-0.0.5 lib/topographer/importer/logger/log_entry.rb
topographer-0.0.4 lib/topographer/importer/logger/log_entry.rb
topographer-0.0.3 lib/Topographer/importer/logger/log_entry.rb
topographer-0.0.2 lib/Topographer/importer/logger/log_entry.rb