Class: StackOne::Models::Shared::CreateEmploymentApiModel
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::CreateEmploymentApiModel
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/createemploymentapimodel.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(contract_type: nil, effective_date: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, grade: nil, job_id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, payroll_code: nil, type: nil, unified_custom_fields: nil, work_time: nil) ⇒ CreateEmploymentApiModel
constructor
A new instance of CreateEmploymentApiModel.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(contract_type: nil, effective_date: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, grade: nil, job_id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, payroll_code: nil, type: nil, unified_custom_fields: nil, work_time: nil) ⇒ CreateEmploymentApiModel
Returns a new instance of CreateEmploymentApiModel.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/stack_one/models/shared/createemploymentapimodel.rb', line 53 def initialize(contract_type: nil, effective_date: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, grade: nil, job_id: nil, job_title: nil, pay_currency: nil, pay_frequency: nil, pay_period: nil, pay_rate: nil, payroll_code: nil, type: nil, unified_custom_fields: nil, work_time: nil) @contract_type = contract_type @effective_date = effective_date @employment_contract_type = employment_contract_type @employment_type = employment_type @end_date = end_date @grade = grade @job_id = job_id @job_title = job_title @pay_currency = pay_currency @pay_frequency = pay_frequency @pay_period = pay_period @pay_rate = pay_rate @payroll_code = payroll_code @type = type @unified_custom_fields = unified_custom_fields @work_time = work_time end |
Instance Method Details
#==(other) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/stack_one/models/shared/createemploymentapimodel.rb', line 73 def ==(other) return false unless other.is_a? self.class return false unless @contract_type == other.contract_type return false unless @effective_date == other.effective_date return false unless @employment_contract_type == other.employment_contract_type return false unless @employment_type == other.employment_type return false unless @end_date == other.end_date return false unless @grade == other.grade return false unless @job_id == other.job_id return false unless @job_title == other.job_title return false unless @pay_currency == other.pay_currency return false unless @pay_frequency == other.pay_frequency return false unless @pay_period == other.pay_period return false unless @pay_rate == other.pay_rate return false unless @payroll_code == other.payroll_code return false unless @type == other.type return false unless @unified_custom_fields == other.unified_custom_fields return false unless @work_time == other.work_time true end |