Class: ImportData

Inherits:
Kuppayam::ApplicationRecord show all
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

Instance Method Details

#display_nameObject


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