Class: Parameter

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

Constant Summary collapse

PAYROLL_MODULE =
'PAYROLL'
PAYROLL_AGREEMENT_PATH_CODE =
'PAYROLL_AGREEMENT_PATH'
EDI_AGREEMENT_PATH =
'EDI_AGREEMENT_PATH'
AI_PLATFORM_AGREEMENT_PATH =
'AI_PLATFORM_AGREEMENT_PATH'

Class Method Summary collapse

Methods inherited from ApplicationRecord

define_decrypted_attribute, define_decrypted_attributes, #errors_in_bullet_points, primary_connection, special_connection

Class Method Details

.ai_platform_agreement_pathObject



22
23
24
# File 'app/models/parameter.rb', line 22

def ai_platform_agreement_path
  find_by!(CODE: AI_PLATFORM_AGREEMENT_PATH).VALUE
end

.edi_agreement_pathObject



18
19
20
# File 'app/models/parameter.rb', line 18

def edi_agreement_path
  find_by!(CODE: EDI_AGREEMENT_PATH).VALUE
end

.payroll_agreement_pathObject



14
15
16
# File 'app/models/parameter.rb', line 14

def payroll_agreement_path
  find_by!(CODE: PAYROLL_AGREEMENT_PATH_CODE).VALUE
end