Class: ImportData
- Inherits:
-
Kuppayam::ApplicationRecord
- Object
- ActiveRecord::Base
- Kuppayam::ApplicationRecord
- ImportData
- Defined in:
- app/models/import_data.rb
Constant Summary collapse
- PENDING =
Constants
"pending"
- FAILED =
"failed"
- SUCCEEDED =
"succeeded"
- STATUS_HASH =
{"Pending" => PENDING, "Failed" => FAILED, "Succeeded" => SUCCEEDED}
- STATUS_HASH_REVERSE =
{PENDING => "Pending", FAILED => "Failed", SUCCEEDED => "Succeeded"}
Instance Method Summary collapse
-
#display_name ⇒ Object
—————— Instance Methods ——————.
Instance Method Details
#display_name ⇒ Object
Instance Methods
28 29 30 31 32 33 34 |
# File 'app/models/import_data.rb', line 28 def display_name if self.importable "#{self.id} - Import Data for #{self.importable.display_name}" else "#{self.id} - Import Data (No Importable)" end end |