Class: Topographer::Importer::Logger::FatalErrorEntry
- Defined in:
- lib/topographer/importer/logger/fatal_error_entry.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Attributes inherited from LogEntry
Instance Method Summary collapse
- #details ⇒ Object
- #failure? ⇒ Boolean
-
#initialize(input_identifier, message) ⇒ FatalErrorEntry
constructor
A new instance of FatalErrorEntry.
- #source_identifier ⇒ Object
Methods inherited from LogEntry
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, ) @timestamp = DateTime.now @input_identifier = input_identifier @model_name = 'N/A' @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 5 def @message end |
#model_name ⇒ Object (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 |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 5 def @timestamp end |
Instance Method Details
#details ⇒ Object
16 17 18 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 16 def details {} end |
#failure? ⇒ Boolean
19 20 21 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 19 def failure? true end |
#source_identifier ⇒ Object
13 14 15 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 13 def source_identifier 'import failure' end |