Class: StackOne::Models::Shared::HrisUpdateEmployeeRequestDtoEmployment

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb

Overview

The employee employment

Instance Method Summary collapse

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_title: nil, passthrough: 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) ⇒ HrisUpdateEmployeeRequestDtoEmployment

Returns a new instance of HrisUpdateEmployeeRequestDtoEmployment.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb', line 55

def initialize(contract_type: nil, effective_date: nil, employment_contract_type: nil, employment_type: nil, end_date: nil, grade: nil, job_title: nil, passthrough: 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_title = job_title
  @passthrough = passthrough
  @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



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb', line 75

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_title == other.job_title
  return false unless @passthrough == other.passthrough
  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