Class: EducodeSales::Common

Inherits:
ApplicationRecord show all
Defined in:
app/models/educode_sales/common.rb

Constant Summary collapse

XTYPE =
"x_class"
OTYPE =
'o_class'
ATYPE =
'a_class'
BTYPE =
'b_class'
CTYPE =
'c_class'
DTYPE =
'd_class'
ETYPE =
'e_class'

Class Method Summary collapse

Class Method Details

.job_type_nameObject



32
33
34
# File 'app/models/educode_sales/common.rb', line 32

def self.job_type_name
  self.where(clazz: 'staff_type').pluck(:id, :name).to_h
end

.key_attitude_nameObject



40
41
42
# File 'app/models/educode_sales/common.rb', line 40

def self.key_attitude_name
  self.where(clazz: 'key_attitude').pluck(:id, :name).to_h
end

.teacher_attitude_nameObject



44
45
46
# File 'app/models/educode_sales/common.rb', line 44

def self.teacher_attitude_name
  self.where(clazz: 'teacher_attitude').pluck(:id, :name).to_h
end

.teacher_source_nameObject



36
37
38
# File 'app/models/educode_sales/common.rb', line 36

def self.teacher_source_name
  self.where(clazz: 'teacher_source').pluck(:id, :name).to_h
end