Class: Topographer::Importer::Logger::FatalErrorEntry

Inherits:
LogEntry
  • Object
show all
Defined in:
lib/topographer/importer/logger/fatal_error_entry.rb

Instance Attribute Summary collapse

Attributes inherited from LogEntry

#input_identifier

Instance Method Summary collapse

Methods inherited from LogEntry

#success?

Constructor Details

#initialize(input_identifier, message) ⇒ FatalErrorEntry

Returns a new instance of FatalErrorEntry.



7
8
9
10
11
12
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 7

def initialize(input_identifier, message)
  @timestamp = DateTime.now
  @input_identifier = input_identifier
  @model_name = 'N/A'
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 5

def message
  @message
end

#model_nameObject (readonly)

Returns the value of attribute model_name.



5
6
7
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 5

def model_name
  @model_name
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



5
6
7
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 5

def timestamp
  @timestamp
end

Instance Method Details

#detailsObject



16
17
18
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 16

def details
  {}
end

#failure?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 19

def failure?
  true
end

#source_identifierObject



13
14
15
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 13

def source_identifier
  'import failure'
end