Class: Naf::HistoricalJobAffinityTab

Inherits:
ByHistoricalJobId show all
Defined in:
app/models/naf/historical_job_affinity_tab.rb

Instance Method Summary collapse

Methods inherited from ByHistoricalJobId

connection, full_table_name_prefix, partition_integer_field, partition_num_lead_buffers, partition_table_size

Instance Method Details

#commandObject



56
57
58
# File 'app/models/naf/historical_job_affinity_tab.rb', line 56

def command
  job.command
end

#jobObject


*** Instance Methods *** +++++++++++++++++++++++++



46
47
48
49
50
# File 'app/models/naf/historical_job_affinity_tab.rb', line 46

def job
  ::Naf::HistoricalJob.
    from_partition(id).
    where(id: historical_job_id).first
end

#script_type_nameObject



52
53
54
# File 'app/models/naf/historical_job_affinity_tab.rb', line 52

def script_type_name
  job.script_type_name
end