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.
4 5 6 7 8 9 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 4 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.
2 3 4 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 2 def @message end |
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
2 3 4 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 2 def model_name @model_name end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
2 3 4 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 2 def @timestamp end |
Instance Method Details
#details ⇒ Object
13 14 15 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 13 def details {} end |
#failure? ⇒ Boolean
16 17 18 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 16 def failure? true end |
#source_identifier ⇒ Object
10 11 12 |
# File 'lib/topographer/importer/logger/fatal_error_entry.rb', line 10 def source_identifier 'import failure' end |